sorting a list with objects of a class as its items,your_list.sort(key=lambda x: x.anniversary_score)