]>
Commit | Line | Data |
---|---|---|
a55ce7fe ILT |
1 | #include <algorithm> |
2 | ||
3 | class Ordering { | |
4 | public: | |
5 | bool operator()(int a, int b) { | |
6 | return a < b; | |
7 | } | |
8 | }; | |
9 | ||
10 | void SortAscending(int array[], int size) { | |
11 | std::sort(array, array + size, Ordering()); | |
12 | } |