Glossary term
What is stable sort? Meaning for developers
A sort that keeps items with equal keys in their first order. JavaScript's sort is stable. Selection sort and quick sort are not.
Learn it properly · DSALesson 16: Selection, Bubble and Insertion SortThree simple sorts that show what sorting really does.