/** * Defines how to sort item's childs * @param int $flag * @param bool $deep whether or not to apply sort to item's children * @return NavigationNode */ public function sortBy($flag, $deep = TRUE) { return $this->root->sortBy($flag, $deep); }