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.