L=[[a,b],[c,d],[e,f],...]
I want to sort it by max(a,b), max(c,d), max(e,f), etc.
You can supply a custom key functor to sort:
key
sort
L.sort(key=max)