protected function _getRootNode( $sort = '+' )
	{
		$search = $this->createSearch();
		$search->setConditions( $search->compare( '==', $this->_searchConfig['level']['code'], 0 ) );
		$search->setSortations( array( $search->sort( $sort, $this->_searchConfig['left']['code'] ) ) );
		$nodes = $this->searchNodes( $search );

		if( ( $node = reset( $nodes ) ) !== false ) {
			return $node;
		}

		return null;
	}
protected function _getRootNode( $sort = '+' )
	{
		$search = $this->createSearch();
		$search->setConditions( $search->compare( '==', $this->_searchConfig['level']['code'], 0 ) );
		$search->setSortations( array( $search->sort( $sort, $this->_searchConfig['left']['code'] ) ) );
		$nodes = $this->searchNodes( $search );

		if( ( $node = reset( $nodes ) ) !== false ) {
			return $node;
		}

		return null;
	}
protected function _getRootNode ( $ sort = '+' ) { $ search = $ this -> createSearch ( ) ; $ search -> setConditions ( $ search -> compare ( '==' , $ this -> _searchConfig [ 'level' ] [ 'code' ] , 0 ) ) ; $ search -> setSortations ( array ( $ search -> sort ( $ sort , $ this -> _searchConfig [ 'left' ] [ 'code' ] ) ) ) ; $ nodes = $ this -> searchNodes ( $ search ) ; if ( ( $ node = reset ( $ nodes ) ) !== false ) { return $ node ; } return null ; }
Returns the first tree root node depending on the sorting direction.

@param string $sort Sort direction, '+' is ascending, '-' is descending
@return MW_Tree_Node_Interface|null Tree root node
Returns the first tree root node depending on the sorting direction .