[Tutor] advanced sorting

Kent Johnson kent37 at tds.net
Wed Sep 5 12:36:40 CEST 2007


Alan Gauld wrote:

> There is a way to modify sort behaviour in older versions of Python
> The docs say:
> ------------------------------
> The sort() method takes an optional argument specifying a
> comparison function of two arguments

Another way to do this is with the 'Decorate-Sort-Undecorate' idiom. I 
talk about it here:
http://personalpages.tds.net/~kent37/kk/00007.html

Kent


More information about the Tutor mailing list