[Numpy-discussion] 1D array sorting ascending and descending by fields
plredmond at gmail.com
Mon Jun 4 13:31:45 EDT 2012
I have a one-dimensional ndarray with two fields. I'd like to sort in
descending order by field 'a', breaking ties by sorting in ascending
order by field 'b'.
I've found combinations of sorting and reversing followed by stable
sorting that work, but there must be a straightforward way to do it.
Your help is appreciated!
More information about the NumPy-Discussion