The function sort is used sorts the range according to the criteria.
template<class RandomAccessIterator> void sort (RandomAccessIterator first,RandomAccessIterator last); template<class RandomAccessIterator, class Compare> void sort(RandomAccessIterator first, RandomAccessIterator last, Compare comp);
There is no return value.