From 8e6c6c3500533135cd0f13974e2fdffe5e04231b Mon Sep 17 00:00:00 2001 From: torzdf <36920800+torzdf@users.noreply.github.com> Date: Wed, 4 Oct 2023 10:47:59 +0100 Subject: [PATCH] patch writer: Sort the json file by key --- plugins/convert/writer/patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/convert/writer/patch.py b/plugins/convert/writer/patch.py index 74671c6567..2242323fd0 100644 --- a/plugins/convert/writer/patch.py +++ b/plugins/convert/writer/patch.py @@ -277,5 +277,5 @@ def close(self) -> None: return fname = os.path.join(self.output_folder, "matrices.json") with open(fname, "w", encoding="utf-8") as ofile: - json.dump(self._matrices, ofile, indent=2) + json.dump(self._matrices, ofile, indent=2, sort_keys=True) logger.info("Patch matrices written to: '%s'", fname)