Sorting arrays in NumPy by column

To sort by the second column of a:

a[a[:, 1].argsort()]

Leave a Comment