debuggingdsasorting
Keep sorting comparators consistent
Anonymous
If a comes before b and b comes before c, a should come before c too. Equal keys should compare equal in both directions. If the comparator breaks these rules, sort results can be unpredictable; add tie-breakers explicitly when the output needs a defined order.
0