Sorting array

Tartifola tartifola at
Fri Nov 30 15:42:26 CET 2007

I'm working with numerical array and I'm a little lost on a particular
sorting of one of them. In particular I have an array like

a = array([[8,4,1],[2,0,9]])

and I need to sort it using only the first column as reference but
keeping the lines together so to obtain

array([[2, 0, 9],
       [8, 4, 1]])

Any help?

More information about the Python-list mailing list