Skip to content

Glossary: Data Structures and Algorithms in JavaScript

Stable sort

Also written: stable, stability

A sort that keeps equal items in their original order. JavaScript's sort is stable, but a heap is not.

Where the book teaches it

Related terms

ComparatorTimsortHeap