8 lines
138 B
Python
8 lines
138 B
Python
a = [
|
|
(1, [1, 4, 5, ]),
|
|
(2, [1, 2, 3, 4, 5, ]),
|
|
]
|
|
|
|
updates_list = sorted(a, key=lambda x: x[1], reverse=True)
|
|
print(updates_list)
|