<human>:  sorting a list with objects of a class as its items
<bot>: Here is some code to sort a list `your_list` of class objects by their values for the attribute `anniversary_score`

your_list.sort(key=operator.attrgetter('anniversary_score'))

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