Xavier Ho wrote:
I'm really looking for a way to set up Python classes' natural ordering for sorting purposes.
I believe __lt__ (<) is the only method (operator) used by both .sort and heap module.
-- http://mail.python.org/mailman/listinfo/python-list