Thomas Herve added the comment: > What do you suggest as sort criteria? The natural sort of the tuple you used for equality, I'd say. __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1657> __________________________________