Sorting arrays in NumPy by column时间:2024-12-03 22:07:01https://*.com/questions/2828059/sorting-arrays-in-numpy-by-column I suppose this works: a[a[:,1].argsort()]