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;
        }
    }