def __cmp__(self, other):
        kind_cmp = cmp(self.kind, other.kind)
        if kind_cmp:
            return kind_cmp
        return cmp(self.name, other.name)
Comparator using name of the node, needed for quick list sorting.
dataset/ETHPy150Open codeinn/vcs/vcs/nodes.py/Node.__cmp__