Commit 4e614c9c authored by Tobias Quathamer's avatar Tobias Quathamer

Ensure a stable sorting order in XML file

parent 56f88dd2
......@@ -511,7 +511,7 @@ with open(xml_file, "w") as outfile:
# Write out if subsets are filled
if len(subsets) > 0:
outfile.write("<iso_3166_country code=\"" + last_country_code + "\">\n")
for subset in subsets:
for subset in sorted(subsets):
outfile.write("<iso_3166_subset type=\"" + subset + "\">\n")
for item in subsets[subset]:
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment