1.5.3.21 sort


partial_sort(r,r,r)
partial_sort(r,r,r,bpred)

Sort all values till first part of range is in sorted order.



r partial_sort_copy(i,i,r,r)
r partial_sort_copy
(i,i,r,r,bpred)

Partially sort a range of values (as above) and copy as many values as will fit into an output range.



sort(r,r)
sort(r,r,bpred)

Sort a range of values.



stable_sort(r,r)
stable_sort(r,r,bpred)

Sort and maintaining the same relative order of duplicate values.