list de la lista de python lambda en igual función

list1.sort(key=lambda x: (x.value1, x.value2))
Arno Deceuninck