from operator import itemgetter
L = [['a', [10]], ['b', [1]], ['c', [5, 10]], ['d', [5, 1, -10]], ['e', [5,
    1, -1]]]
sorted(L, key=itemgetter(1), reverse=True)
How to sort a list by checking values in a sublist in python?