Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Sort phone prefixes

akjanik0187d67be56c
diff --git a/saleor/userprofile/i18n.py b/saleor/userprofile/i18n.py
index 5d1c59d4fc..1aa83bc1c5 100644
--- a/saleor/userprofile/i18n.py
+++ b/saleor/userprofile/i18n.py
@@ -22,7 +22,7 @@ UNKNOWN_COUNTRIES = set()
phone_prefixes = [
('+{}'.format(k), '+{}'.format(k)) for
- (k, v) in COUNTRY_CODE_TO_REGION_CODE.items()]
+ (k, v) in sorted(COUNTRY_CODE_TO_REGION_CODE.items())]
AREA_TYPE_TRANSLATIONS = {
'area': pgettext_lazy('Address field', 'Area'),