How can I sort a n x 2 Numpy array in Python?
I know of the np.sort
function but can only get it to sort 1 column independently of all the others.
I want the second columns' entries to follow that of the first.
How can I sort a n x 2 Numpy array in Python?
I know of the np.sort
function but can only get it to sort 1 column independently of all the others.
I want the second columns' entries to follow that of the first.