Hi,
Can someone tell me how I can sort a two dimensional array according to lowest to highest of the first column only?
What I mean is I have a 2 dimensional array with the X and Y values. I then need to sort it by the X values only and the Y values should be in the same row as the X value before sorting.
Like
X Y
3 18
4 45
1 32
2 99
after sorting by the X column the values should read as:
X Y
1 32
2 99
3 18
4 45
