Comparators working

why is following code not working fine for ascending order.

hello @sk1
image

here it should be
if( ! comp(arr[j],arr[j+1]))