I have a matrix which first row indicates index numbers and second indicated the data. For example it goes like this:
1 2 3 4 5 623 45 10 90 11 34
I want to sort these descending but I don't want to loose the corresponding index either.
4 2 6 1 5 390 45 34 23 11 10
I have a large amount of data so it needs to be efficient too. How can I do that?
Best Answer