def __cmp__(self, other):
        kind_cmp = cmp(self.kind, other.kind)
        if kind_cmp:
            return kind_cmp
        return cmp(self.name, other.name)
.. todo::
dataset/ETHPy150Open codeinn/vcs/vcs/nodes.py/Node.__cmp__--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/dbm/ising.py/IsingHidden.downward_message