Skip to content

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.

Where the book teaches it

Related terms

Comparator