On Thu, 2 Mar 2006, Kent Johnson wrote: > In [9]: lst.sort(key=attrgetter('b')); print lst Thanks, Kent! I didn't know about "key=". I see it's new in 2.4. I was thinking I'd have to put in a method for each potentially sortable field.