private function addFieldToSort(Search $search, $sortField)
    {
        $search->addSort(
            new FieldSort(
                $sortField['field'],
                $sortField['order'],
                isset($sortField['mode']) ? ['mode' => $sortField['mode']] : []
            )
        );
    }