urutkan berdasarkan beberapa tombol di objek python
s = sorted(s, key = lambda x: (x[1], x[2]))
Arrogant Anaconda
s = sorted(s, key = lambda x: (x[1], x[2]))
>>> def multisort(xs, specs):
... for key, reverse in reversed(specs):
... xs.sort(key=attrgetter(key), reverse=reverse)
... return xs