Mic92/sonata — comment on commit b34570a916fc975c56eb473922201384c91e74aa
File:  line 0
By multani:

Actually, you should probably just implement __cmp__(), unless you are doing something special:
{{{python

...
def __cmp__(other):
return cmp(self.__key(), other.__key())
}}}

(but you probably can't access ``other.__key()``. Hopefully, you'll get the idea)