def __cmp__(self, other):
if not isinstance(other, Query):<EOL><INDENT>return -<NUM_LIT:1><EOL><DEDENT>elif id(self) == id(other):<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>
Use the compare method to be able to see if two query items are
the same vs. ==, since == is used to set the query's is value.

:param      other       <variant>

:return     <int> 1 | 0 | -1