'@param other: another L{RemoteReference} to compare me to.'

def __cmp__(self, other):

    if isinstance(other, RemoteReference):
        if (other.broker == self.broker):
            return cmp(self.luid, other.luid)
    return cmp(self.broker, other)
