Sorting 2 Dimensional Array
I have a 2D array and I would like to sort it based on the second column. How do I do this?
For example,
A(0,0) = 1
A(0,1) = 4
A(1,0) = 3
A(1,1) = 2
I want to to sort it so it comes out like this.
A(0,0) = 3
A(0,1) = 2
A(1,0) = 1
A(1,1) = 4
Second column is sorted Acesending order.