def __eq__(self, other):
if self.is_compatible(other):<EOL><INDENT>return self.key == other.key<EOL><DEDENT>else:<EOL><INDENT>return NotImplemented<EOL><DEDENT>
Equality comparison for natural order sorting keys.