I have a matrix with two columns of the following form:
1 349
1 393
1 392
4 459
3 49
3 32
2 94
I would like to sort this matrix in increasing order based on the first column but I would like to keep the corresponding values in the second column.
The output would look like this:
1 349
1 393
1 392
2 94
3 49
3 32
4 459