larry.martell at gmail.com
Wed Sep 23 00:42:55 CEST 2015
I currently have 3 lists of lists and I sort them based on a common
field into a single list like this:
sorted(a + b + c, key=GetObjKey)
Which works just fine.
But now, I need to have just the first list (a) also sub sorted by
another field and I can't quite figure out how to do this.
So for example, if my initial data was this (I'll only show the fields
involved with the sort - the first number is a above and the second
is the new additional sorting field, only present in a)
Then I'd want my sorted list to be this:
I hope that's clear.
So is there some pythonic way to sort this without resorting to a
brute force old fashioned plow through the data?
More information about the Python-list