lwbc64

lwbc64

  • NA
  • 2
  • 0

Sorting 2 Dimensional Array

Oct 29 2004 4:14 AM
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.

Answers (1)