Glossary: Algorithms Beyond the Basics in JavaScript
Stable sort
Also written: stable
A sort that keeps equal items in their original order. JavaScript's `sort` has been stable since ES2019, so equal roads keep their file order.
Glossary: Algorithms Beyond the Basics in JavaScript
Also written: stable
A sort that keeps equal items in their original order. JavaScript's `sort` has been stable since ES2019, so equal roads keep their file order.