clasificación-a-python-list-by-two-campos

sorted_list = sorted(list, key=lambda x: (x[0], -x[1]))
Inquisitive Ibis