Lecture 6 - Slide 22 : 40
Using the sort algorithm

We adapt an example program that uses the sort algorithm from cplusplus.com

template <class RandomAccessIterator>
  void sort (RandomAccessIterator first, RandomAccessIterator last);

template <class RandomAccessIterator, class Compare>
  void sort (RandomAccessIterator first, RandomAccessIterator last, Compare comp);
prog-2-kn.cpp
Sorting a vector of integers.
prog-2-kn-output
Program output.