Sorting by multiple conditions in python,table.sort(key=lambda t: t.points)