sorting a list with objects of a class as its items,your_list.sort(key=operator.attrgetter('anniversary_score'))