source/Application/Controller/FrontendController.php
public function getSorting($sortIdent)
    {
        $sorting = null;

        if ($sorting = $this->getUserSelectedSorting()) {
            $this->setItemSorting($sortIdent, $sorting['sortby'], $sorting['sortdir']);
        } elseif (!$sorting = $this->getSavedSorting($sortIdent)) {
            $sorting = $this->getDefaultSorting();
        }

        if ($sorting) {
            $this->setListOrderBy($sorting['sortby']);
            $this->setListOrderDirection($sorting['sortdir']);
        }

        return $sorting;
    }
public function getSorting($sortIdent)
    {
        $sorting = null;

        if ($sorting = $this->getUserSelectedSorting()) {
            $this->setItemSorting($sortIdent, $sorting['sortby'], $sorting['sortdir']);
        } elseif (!$sorting = $this->getSavedSorting($sortIdent)) {
            $sorting = $this->getDefaultSorting();
        }

        if ($sorting) {
            $this->setListOrderBy($sorting['sortby']);
            $this->setListOrderDirection($sorting['sortdir']);
        }

        return $sorting;
    }
public function getSorting ( $ sortIdent ) { $ sorting = null ; if ( $ sorting = $ this -> getUserSelectedSorting ( ) ) { $ this -> setItemSorting ( $ sortIdent , $ sorting [ 'sortby' ] , $ sorting [ 'sortdir' ] ) ; } elseif ( ! $ sorting = $ this -> getSavedSorting ( $ sortIdent ) ) { $ sorting = $ this -> getDefaultSorting ( ) ; } if ( $ sorting ) { $ this -> setListOrderBy ( $ sorting [ 'sortby' ] ) ; $ this -> setListOrderDirection ( $ sorting [ 'sortdir' ] ) ; } return $ sorting ; }
Returns sorting config for current item

@param string $sortIdent sortable item id

@return array
Returns sorting config for current item