mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-27 14:50:23 +00:00
13 lines
200 B
C++
13 lines
200 B
C++
#include <algorithm>
|
|
|
|
class Ordering {
|
|
public:
|
|
bool operator()(int a, int b) {
|
|
return a < b;
|
|
}
|
|
};
|
|
|
|
void SortAscending(int array[], int size) {
|
|
std::sort(array, array + size, Ordering());
|
|
}
|