#include
using namespace std;
bool compare(int a, int b)
{
cout<<a<<b;
return a < b;
}
int main()
{
int a[] = {5, 3, 2, 4, 1, 6};
int n = sizeof(a) / sizeof(int);
for (int i = 0; i < n; i++)
{
cout << a[i] << " ";
}
cout << endl;
short(a, a + n, compare);
for (int i = 0; i < n; i++)
{
cout << a[i] << " ";
}
cout << endl;
return 0;
}