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.
Glossary: Data Structures and Algorithms in JavaScript
Also written: stable, stability
A sort that keeps equal items in their original order. JavaScript's sort is stable, but a heap is not.