public function getForFacet($sorting)
    {
        $noSortingSet = $sorting !== 0 && $sorting !== FALSE && empty($sorting);
        $sortingIsCount = $sorting === 'count' || $sorting === 1 || $sorting === '1' || $sorting === TRUE;
        if ($noSortingSet) {
            return '';
        } elseif ($sortingIsCount) {
            return 'count';
        } else {
            return 'index';
        }
    }
public function getForFacet($sorting)
    {
        $noSortingSet = $sorting !== 0 && $sorting !== FALSE && empty($sorting);
        $sortingIsCount = $sorting === 'count' || $sorting === 1 || $sorting === '1' || $sorting === TRUE;
        if ($noSortingSet) {
            return '';
        } elseif ($sortingIsCount) {
            return 'count';
        } else {
            return 'index';
        }
    }
public function getForFacet ( $ sorting ) { $ noSortingSet = $ sorting !== 0 && $ sorting !== FALSE && empty ( $ sorting ) ; $ sortingIsCount = $ sorting === 'count' || $ sorting === 1 || $ sorting === '1' || $ sorting === TRUE ; if ( $ noSortingSet ) { return '' ; } elseif ( $ sortingIsCount ) { return 'count' ; } else { return 'index' ; } }
Return expression for facet sorting

@param string $sorting
@return string
Return expression for facet sorting