public function defaultOrder($dir = 'asc')
    {
        $this->query->orders = null;

        $this->query->orderBy($this->model->getLftName(), $dir);

        return $this;
    }
public function defaultOrder($dir = 'asc')
    {
        $this->query->orders = null;

        $this->query->orderBy($this->model->getLftName(), $dir);

        return $this;
    }
public function defaultOrder ( $ dir = 'asc' ) { $ this -> query -> orders = null ; $ this -> query -> orderBy ( $ this -> model -> getLftName ( ) , $ dir ) ; return $ this ; }
Order by node position.

@param string $dir

@return $this
Order by node position .