Upgraded to pure-cjs with stable sort.