stl ordering code example Example: stl ordering int arr[] = { 1, 5, 8, 9, 6, 7, 3, 4, 2, 0 }; std::sort(arr, arr + n);