From 89017ff0b30c241cf50e5eef1f34b1701432ae1b Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Wed, 16 Sep 2026 16:24:50 -0700 Subject: [PATCH] VMConfig: Save JSON with sorted keys (#1326) --- Sources/tart/VMConfig.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/tart/VMConfig.swift b/Sources/tart/VMConfig.swift index c6e9ba9..7fd58d9 100644 --- a/Sources/tart/VMConfig.swift +++ b/Sources/tart/VMConfig.swift @@ -99,7 +99,7 @@ struct VMConfig: Codable { func save(toURL: URL) throws { let encoder = JSONEncoder() - encoder.outputFormatting = .prettyPrinted + encoder.outputFormatting = [.prettyPrinted, .sortedKeys] try encoder.encode(self).write(to: toURL) }