def __cmp__(self, other):
try:<EOL><INDENT>my_str = '<STR_LIT>'.format(type(self).__name__, self.id())<EOL>other_str = '<STR_LIT>'.format(type(self).__name__, other.id())<EOL>return cmp(my_str, other_str)<EOL><DEDENT>except StandardError:<EOL><INDENT>return -<NUM_LIT:1><EOL><DEDENT>
Compares one record to another.

:param      other | <variant>

:return     -1 || 0 || 1