Why is the Code producing same output by reversing the compare function variables
Code:
Why is the Code producing same output by reversing the compare function variables
Code:
Please, give an example, so that it is clear to me.
If i reverse the compare function return statement from "ab " there should be a change in the sorted output but there is no change . Please clarify this .
I still don’t get you. Do you mean from a > b to a < b?