Sort function not showing i attach code also

#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;

}

hi @dheerajjha11111_bb855e8d7a52ef0d use #include <algorithm>