Sorting-a-Python-List-by-Two-Felder

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