Sorting by multiple conditions in python,table.sort(key=attrgetter('points'))