summaryrefslogtreecommitdiffstats
path: root/util/locale_database/qlocalexml.py
diff options
context:
space:
mode:
Diffstat (limited to 'util/locale_database/qlocalexml.py')
-rw-r--r--util/locale_database/qlocalexml.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/locale_database/qlocalexml.py b/util/locale_database/qlocalexml.py
index 0f85e8e16de..f9f2ba3d577 100644
--- a/util/locale_database/qlocalexml.py
+++ b/util/locale_database/qlocalexml.py
@@ -655,7 +655,8 @@ class QLocaleXmlWriter (object):
self.__openTag('zoneAliases')
# iana is a single IANA ID
# name has the same form, but has been made redundant
- for name, iana in sorted(alias.items()):
+ # Do case-insensitive sorting, to match how lookup is done:
+ for name, iana in sorted(alias.items(), key = lambda s: (s[0].lower(), s[1])):
if name == iana:
continue
self.asTag('zoneAlias', alias = name, iana = iana)