On Tue, Feb 18, 2014 at 8:35 AM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote: > If you don't want to touch comparison in general, > how about an option to sort()? > > results = sorted(invoices, key=attrgetter('duedate'), none='first') I think this is a much better option. //Lennart