source/Application/Controller/FrontendController.php
public function setItemSorting($sortIdent, $sortBy, $sortDir = null)
    {
        $sorting = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('aSorting');
        $sorting[$sortIdent]['sortby'] = $sortBy;
        $sorting[$sortIdent]['sortdir'] = $sortDir ? $sortDir : null;

        \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('aSorting', $sorting);
    }
public function setItemSorting($sortIdent, $sortBy, $sortDir = null)
    {
        $sorting = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('aSorting');
        $sorting[$sortIdent]['sortby'] = $sortBy;
        $sorting[$sortIdent]['sortdir'] = $sortDir ? $sortDir : null;

        \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('aSorting', $sorting);
    }
public function setItemSorting ( $ sortIdent , $ sortBy , $ sortDir = null ) { $ sorting = \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> getVariable ( 'aSorting' ) ; $ sorting [ $ sortIdent ] [ 'sortby' ] = $ sortBy ; $ sorting [ $ sortIdent ] [ 'sortdir' ] = $ sortDir ? $ sortDir : null ; \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> setVariable ( 'aSorting' , $ sorting ) ; }
Sets sorting item config

@param string $sortIdent sortable item id
@param string $sortBy    sort field
@param string $sortDir   sort direction (optional)
Sets sorting item config