I\'ve got a list of Python objects that I\'d like to sort by an attribute of the objects themselves. The list looks like:
>>> ut [,
from operator import attrgetter ut.sort(key = attrgetter('count'), reverse = True)