Sort json keys

This commit is contained in:
kramo
2023-02-02 19:27:17 +01:00
parent 8d1e98c277
commit b13a27a01f

View File

@@ -27,5 +27,5 @@ def save_games(games):
for game in games:
open_file = open(os.path.join(games_dir, game + ".json"), "w")
open_file.write(json.dumps(games[game], indent=4))
open_file.write(json.dumps(games[game], indent=4, sort_keys=True))
open_file.close()