FIX: Order regions by name

FIX: Order regions by name

diff --git a/assets/javascripts/discourse/components/region-input.js.es6 b/assets/javascripts/discourse/components/region-input.js.es6
index 26b9099..104e3ed 100644
--- a/assets/javascripts/discourse/components/region-input.js.es6
+++ b/assets/javascripts/discourse/components/region-input.js.es6
@@ -23,6 +23,6 @@ export default ComboBoxComponent.extend({
         name: I18n.t(`discourse_calendar.region.names.${region}`),
         id: region
       };
-    });
+    }).sort((a, b) => a.name.localeCompare(b.name));
   })
 });

GitHub sha: 65f7c4e3

1 Like