C++ Language/Std/Stl/Algorithms/Modifying/Reordering

The std::sort() algorithm uses a predicate callable-object for all of its internal comparisons between two items. That predicate defaults to std::less<>().

Additional information about reordering algorithms (includes interactive examples)