source/Application/Controller/FrontendController.php
public function getSortingSql($ident)
    {
        $sorting = $this->getSorting($ident);
        if (is_array($sorting)) {
            $sortBy = \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quoteIdentifier($sorting['sortby']);
            $sortDir = isset($sorting['sortdir']) ? $sorting['sortdir'] : '';
            $sortString = trim($sortBy . ' ' . $sortDir);

            return $sortString;
        }
    }
public function getSortingSql($ident)
    {
        $sorting = $this->getSorting($ident);
        if (is_array($sorting)) {
            $sortBy = \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quoteIdentifier($sorting['sortby']);
            $sortDir = isset($sorting['sortdir']) ? $sorting['sortdir'] : '';
            $sortString = trim($sortBy . ' ' . $sortDir);

            return $sortString;
        }
    }
public function getSortingSql ( $ ident ) { $ sorting = $ this -> getSorting ( $ ident ) ; if ( is_array ( $ sorting ) ) { $ sortBy = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) -> quoteIdentifier ( $ sorting [ 'sortby' ] ) ; $ sortDir = isset ( $ sorting [ 'sortdir' ] ) ? $ sorting [ 'sortdir' ] : '' ; $ sortString = trim ( $ sortBy . ' ' . $ sortDir ) ; return $ sortString ; } }
Returns part of SQL query with sorting params

@param string $ident sortable item id

@return string
Returns part of SQL query with sorting params