public function compare(\ORC\Util\Tree\INode $node) { if ($node instanceof Node) { return strcmp($this->get('code'), $node->get('code')); } throw new RuntimeException('不能比较两个不同类型的node'); }