diff --git a/util/convertpottojson.py b/util/convertpottojson.py --- a/util/convertpottojson.py +++ b/util/convertpottojson.py @@ -52,12 +52,12 @@ with open(enPath, 'r') as infile: enData = json.load(infile) -for msgId in sorted(enData): +for msgId in enData: msg = "" if msgId in translations: msg = translations[msgId] if not msg: msg = enData[msgId]["message"] outTranslations[msgId] = {"message" : msg} -outfile.write(json.JSONEncoder(indent=4, ensure_ascii=False).encode(outTranslations)) +outfile.write(json.JSONEncoder(indent=4, ensure_ascii=False, sort_keys=True).encode(outTranslations))