how can I sort 2d array?

 
How? ArraySort works only with one dimension it says.
 
sarged:
How? ArraySort works only with one dimension it says.
Move data to 1-dimensional array, sort it and then move back to 2d array.