Skip to content

Commit 18400ec

Browse files
committed
feat: sort the organisation by localized name
1 parent 03c58e7 commit 18400ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/components/Editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export default function Editor() {
168168
text: getLocalizedText(organisation.name, i18n.language) + (organisation.alternativeName ? ` (${getLocalizedText(organisation.alternativeName, i18n.language)})` : ""),
169169
value: organisation.id,
170170
group: getLocalizedText(data.name, i18n.language) + (data.abbreviation ? ` (${getLocalizedText(data.abbreviation, i18n.language)})` : ''),
171-
}))
171+
})).sort((a, b) => a.text.localeCompare(b.text, i18n.language))
172172
);
173173

174174
const { showCountryExtensionVersion, setShowCountryExtensionVersion } =

0 commit comments

Comments
 (0)