Raymond Hettinger added the comment: Forgot to mention, the easy work-around is to do two consecutive sorts and take advantage of the guaranteed stability:
l.sort(key=secondary, reverse=True) l.sort(key=primary) __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1771> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com