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 _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor