From 1424a5a144d08c152a758ba332dc35dc12f2a8ee Mon Sep 17 00:00:00 2001 From: relikd Date: Sat, 9 Mar 2024 20:06:40 +0100 Subject: [PATCH] fix: sort order for urls.json --- ipa_archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipa_archive.py b/ipa_archive.py index 3624dc50..5773b154 100755 --- a/ipa_archive.py +++ b/ipa_archive.py @@ -704,7 +704,7 @@ def export_json(): for newurl, newidx in submap.items(): url_map[newidx] = newurl with open(CACHE_DIR / 'urls.json', 'w') as fp: - fp.write(json.dumps(url_map, separators=(',\n', ':'))) + fp.write(json.dumps(url_map, separators=(',\n', ':'), sort_keys=True)) print(f'write urls.json: {len(url_map)} entries')