arrayssorting
Stable sorting preserves earlier tie breaks
Anonymous
A stable sort keeps equal-key items in their previous order. That can be handy for multi-key ordering: sort by the less important key first, then stably sort by the more important key. Check that the sort you're using is stable before relying on this.
0