Deterministic order makes generated artifacts easier to inspect
Object member order is often incidental to the application consuming JSON. When two serializers produce the same members in different orders, a text diff can show broad churn even though the represented data is equivalent. Sorting member names provides one stable presentation for review and fixture generation.
Tool Swim compares names with the browser's locale-independent string ordering used by the implementation and serializes the result with two-space indentation. The transform is deterministic for the same runtime and input. It is not a standards-defined canonical JSON format or a cryptographic normalization scheme.