protected function applySorting(array $facetParameters)
    {
        $sortingExpression = new SortingExpression();
        $globalSortingExpression = $sortingExpression->getForFacet($this->sorting);

        if (!empty($globalSortingExpression)) {
            $facetParameters['facet.sort'] = $globalSortingExpression;
        }

        return $facetParameters;
    }
protected function applySorting(array $facetParameters)
    {
        $sortingExpression = new SortingExpression();
        $globalSortingExpression = $sortingExpression->getForFacet($this->sorting);

        if (!empty($globalSortingExpression)) {
            $facetParameters['facet.sort'] = $globalSortingExpression;
        }

        return $facetParameters;
    }
protected function applySorting ( array $ facetParameters ) { $ sortingExpression = new SortingExpression ( ) ; $ globalSortingExpression = $ sortingExpression -> getForFacet ( $ this -> sorting ) ; if ( ! empty ( $ globalSortingExpression ) ) { $ facetParameters [ 'facet.sort' ] = $ globalSortingExpression ; } return $ facetParameters ; }
Reads the facet sorting configuration and applies it to the queryParameters.

@param array $facetParameters
@return array
Reads the facet sorting configuration and applies it to the queryParameters .