Simple support for __cmp__