// Example use of sort() function in the C++ library.
// The sort function is included from the "algorithm" header.
// The underlying algorithm is a combination of quicksort and heapsort.
#include <iostream>
#include <algorithm>

int main ()
{
  int array[] = { 13, 5, -11, 0, 0, 32, 1, 2, 21, 99 };
  int size = sizeof(array) / sizeof(array[0]);

  std::sort(array, array + size);

  for (int i = 0; i < size; ++i)
     std::cout << array[i] << ' ';
  std::cout << '\n';

  return 0;
}
