Skip to content

Glossary: Data Structures and Algorithms in C++

std::sort

Also written: sort

The library's in-place O(n log n) sort. It orders numbers and strings naturally, or structs with a comparator, and may reorder equal items.

Where the book teaches it

Related terms

IntrosortComparatorStable sort