Originally Posted by Saiket
IIRC, it should work alright as long as your sort function always returns consistent results for the same two elements to test, and test(a,b) is always the inverse of test(b,a).
|
Be my guest to look through the latest code I proposed and try to fix it.
From what understanding I make out of that, the sort function doesn't like being told not to swap values for the reason both values are equal?