eZ\Publish\Core\FieldType\Country\Type::getSortInfo PHP Method

getSortInfo() protected method

Returns information for FieldValue->$sortKey relevant to the field type.
protected getSortInfo ( Value $value ) : array
$value eZ\Publish\Core\FieldType\Value
return array
    protected function getSortInfo(BaseValue $value)
    {
        $countries = array();
        foreach ($value->countries as $countryInfo) {
            $countries[] = $this->transformationProcessor->transformByGroup($countryInfo['Name'], 'lowercase');
        }
        sort($countries);
        return implode(',', $countries);
    }