Key order carries no meaning - but it carries a lot of noise
RFC 8259 is explicit that a JSON object is an unordered collection of name/value pairs. Two documents whose keys appear in different orders are the same document as far as the specification is concerned, and any correct consumer must treat them identically.
In practice, though, every mainstream parser preserves insertion order, and `JSON.stringify` writes keys back in that order. So the ordering survives round trips even though nothing depends on it - which means an unrelated change upstream, a different library version, or a map iteration order can reshuffle a file and produce a diff with dozens of changed lines and zero changed data.
Sorting keys removes that noise permanently. Once every document is written in the same canonical order, a diff shows only what actually changed. This is the entire reason the operation exists.