mirror of
https://github.com/autc04/Retro68.git
synced 2024-10-22 17:28:01 +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());
|
||
|
}
|