Skip to content

Glossary: Coding Interviews in C++

std::sort and std::stable_sort

Also written: std::sort, std::stable_sort

Standard sorting functions taking an optional comparator. `stable_sort` keeps the original order of ties, and `std::sort` does not promise that.

Where the book teaches it

Related terms

ComparatorSort first