Description
sort() sorts a sequence of elements, using the operator < or a user-supplied comparison function. sort() is not stable, that is, it does not necessarily preserve the order of elements that compare as equal.
Declaration
template <class Ran> void sort(Ran, Ran); template <class Ran, class Cmp> void sort(Ran, Ran, Cmp);
Concept
The example program defines a vector of integers, and sorts them in ascending order.
Special Notes:
The average sort time is proportional to O(NlogN).
Supported
Supported
Supported