private function getSortOrderParams(FieldInterface $field, array $sortOrderParams)
    {
        $sortOrderParams['field']   = $field->getMappingProperty(FieldInterface::ANALYZER_SORTABLE);
        $sortOrderParams['missing'] = $field->getSortMissing($sortOrderParams['direction']);

        if ($field->isNested() && !isset($sortOrderParams['nestedPath'])) {
            $sortOrderParams['nestedPath'] = $field->getNestedPath();
        }

        return $sortOrderParams;
    }
private function getSortOrderParams(FieldInterface $field, array $sortOrderParams)
    {
        $sortOrderParams['field']   = $field->getMappingProperty(FieldInterface::ANALYZER_SORTABLE);
        $sortOrderParams['missing'] = $field->getSortMissing($sortOrderParams['direction']);

        if ($field->isNested() && !isset($sortOrderParams['nestedPath'])) {
            $sortOrderParams['nestedPath'] = $field->getNestedPath();
        }

        return $sortOrderParams;
    }
private function getSortOrderParams ( FieldInterface $ field , array $ sortOrderParams ) { $ sortOrderParams [ 'field' ] = $ field -> getMappingProperty ( FieldInterface :: ANALYZER_SORTABLE ) ; $ sortOrderParams [ 'missing' ] = $ field -> getSortMissing ( $ sortOrderParams [ 'direction' ] ) ; if ( $ field -> isNested ( ) && ! isset ( $ sortOrderParams [ 'nestedPath' ] ) ) { $ sortOrderParams [ 'nestedPath' ] = $ field -> getNestedPath ( ) ; } return $ sortOrderParams ; }
Retrieve base params for a sort order field.

@param FieldInterface $field           Sort order field.
@param array          $sortOrderParams Sort order params.

@return array
Retrieve base params for a sort order field .