sort with "key" and "reverse" is standard in Python 2.4. The redundant my_sort function can be removed. Available as revision 1494 in branch: http://delta.univ-orleans.fr/~duchier/bzr/bzr.cleanup Cheers, --Denys