Jan-22-2021, 05:57 PM
oh sorry! I confused myself, it is a numpy array (a named array i guess) so I am sorting it by the two named columns. I often use terms incorrectly with these arrays so hopefully I am using it correctly here. the entirety of my sort code is as I said above:
https://numpy.org/doc/stable/reference/g....sort.html
def sort_by_column(data, order=['bin','ref']): '''sort data in place based on order list''' data.sort(order=order)'bin' is an actual integer and it sorts it fine by that, it's the second ranking that is sorting, but not sorting the way i want. Does that clarify?
https://numpy.org/doc/stable/reference/g....sort.html