Lista de pedidos de Python por índice múltiple

sorted_list = sorted(a_list, key = lambda x: (x[1], x[0]))
Old-fashioned Ostrich