#include using namespace std; int X[3][3] = { {9, 8, 7}, {6, 5, 4}, {3,2,1} }; int main(){ sort(X[0], X[0]+9); return 0; }