Lets say that my matrix is
[ x3 y3 x1 y1 x2 y2]
I want to sort the second column y in ascending order so that the respective 1'st column is also sorted accordingly. I want the output to be like this:
[ x1 y1 x2 y2 x3 y3]How do I do that?
Best Answer