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.