sorter.c
static void swapIfNeeded(int* array, int a, int b)
{
    if(array[a] >array[b])
    {
        swap(array, a, b);
    }
}
/*
 * Does a compare and swaps if a> b
 */
Does a compare and swaps if a> b
Does a compare and swaps if a > b
static void swapIfNeeded(int* array, int a, int b)
{
    if(array[a] >array[b])
    {
        swap(array, a, b);
    }
}
static void swapIfNeeded ( int * array , int a , int b ) { if ( array [ a ] > array [ b ] ) { swap ( array , a , b ) ; } }
Does a compare and swaps if a> b
Does a compare and swaps if a > b