src/Attribute/TranslatedSelect.php
protected function getFilterOptionsOrderBy()
    {
        if ($this->getSortingOverrideTable() && $this->getSortingOverrideColumn()) {
            return \sprintf(
                'FIELD(%s.id, (SELECT GROUP_CONCAT(id ORDER BY %s) FROM %s)),',
                $this->getSelectSource(),
                $this->getSortingOverrideColumn(),
                $this->getSortingOverrideTable()
            );
        }

        return '';
    }
protected function getFilterOptionsOrderBy()
    {
        if ($this->getSortingOverrideTable() && $this->getSortingOverrideColumn()) {
            return \sprintf(
                'FIELD(%s.id, (SELECT GROUP_CONCAT(id ORDER BY %s) FROM %s)),',
                $this->getSelectSource(),
                $this->getSortingOverrideColumn(),
                $this->getSortingOverrideTable()
            );
        }

        return '';
    }
Retrieve the sorting part for the getFilterOptions() queries.

@return string