I'm sorry about the comments, but these were commented on a whiteboard at the time of creation, so I never added them to the code.
Blame PHPBB2 for the tabs.
void sort(int arr[], int size)
{
bool swap = false;
int temp;
do
{
swap = false;
for(int i = 0; i < (size - 1); ++i)
{
if(arr < arr[i + 1])
{
temp = arr[i + 1];
arr[i + 1] = arr;
arr = temp;
swap = true;
}
}
}
while(swap);
}