diff --git a/plugins/custom-form-example-plugin/src/widgets/CountryWidget.tsx b/plugins/custom-form-example-plugin/src/widgets/CountryWidget.tsx index 966e1be..98cffb5 100644 --- a/plugins/custom-form-example-plugin/src/widgets/CountryWidget.tsx +++ b/plugins/custom-form-example-plugin/src/widgets/CountryWidget.tsx @@ -20,7 +20,7 @@ const CountryWidget: Widget = ({ value, onChange } const countryOptions: Option[] = data.map((country: any) => ({ label: country.name.common, value: country.name.common, - })); + })).sort(({label: label1}, {label: label2}) => label1.localeCompare(label2)); setCountries(countryOptions); } catch (err) { // eslint-disable-next-line no-alert