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

The  algorithm uses a predicate callable-object for all of its internal comparisons between two items. That predicate defaults to.

Additional information about reordering algorithms (includes interactive examples)