dsapracticesorting
Stable sorting helps with multiple keys
Anonymous
A stable sort keeps equal-key items in their original relative order. That makes two-pass sorting useful: sort by the secondary key first, then stably sort by the primary key. The second pass preserves the secondary ordering among items with equal primary keys.
0