public function orderDir($var = null)
    {
        //user_error(__CLASS__ . '::' . __FUNCTION__ . '() is deprecated since Grav 1.6', E_USER_DEPRECATED);

        if ($var !== null) {
            $this->order_dir = $var;
        }

        if (empty($this->order_dir)) {
            $this->order_dir = 'asc';
        }

        return $this->order_dir;
    }
public function orderDir($var = null)
    {
        //user_error(__CLASS__ . '::' . __FUNCTION__ . '() is deprecated since Grav 1.6', E_USER_DEPRECATED);

        if ($var !== null) {
            $this->order_dir = $var;
        }

        if (empty($this->order_dir)) {
            $this->order_dir = 'asc';
        }

        return $this->order_dir;
    }
public function orderDir ( $ var = null ) { //user_error(__CLASS__ . '::' . __FUNCTION__ . '() is deprecated since Grav 1.6', E_USER_DEPRECATED); if ( $ var !== null ) { $ this -> order_dir = $ var ; } if ( empty ( $ this -> order_dir ) ) { $ this -> order_dir = 'asc' ; } return $ this -> order_dir ; }
Gets and sets the order by which any sub-pages should be sorted.

@param  string $var the order, either "asc" or "desc"

@return string      the order, either "asc" or "desc"
@deprecated 1.6
Gets and sets the order by which any sub - pages should be sorted .