_toOptionArray('country_id', 'name', ['title' => 'iso3_code']); $sort = []; foreach ($options as $data) { $name = (string)$this->_localeLists->getCountryTranslation($data['value']); if (!empty($name)) { $sort[$name] = $data['title']; } } $this->_arrayUtils->ksortMultibyte($sort, $this->_localeResolver->getLocale()); $sort = array_flip($sort); $options = []; foreach ($sort as $value => $label) { $options[] = ['value' => $value, 'label' => $label]; } return $options; } }