Comparators in bubble sort

im using dev c++ to execute my programs, the bubble sort using comparator code doesnt seem to work. it does not show the comparing statement, also when i change ab there is no change in output.

@maazsaad please share your code by saving it on cb ide

i saved it, kindly check.

@maazsaad you have to share the link as well, i cant access your saved codes. Kindy copy the URL that is generated after you save the link and share it here

@maazsaad the function is working fine, just in a different way.
its giving ascending order for a > b
and descending order for a < b

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.