human
sort a list of dicts by x then by y
assistant
Here is some code to sort a list of dictionary `list` first by key `points` and then by `time`

list.sort(key=lambda item: (item['points'], item['time']))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.