myCompare Function

will the myCompare function swap when it is true or when it is false ?

True = swap
False=dont’ swap

the first parameter passed is the i+1 index element or ith index element