I have a list that looks like this:
- Code: Select all
data = [['Sun','10:15'],['Sat','11:23'],['Mon','12:25']]
I'd like to sort the data list so that it sorts by weekday and then by time (i.e. by row 0 and then row 1)
the tricky bit is that I don't want to do either a lexical or a numeric sort on the first row, but rather by
the index of the DOW_LIST.
Can someone show me a good way to do this?