Skip to content

Add option (and make it the default) to sort maps by key when encoding #121

Merged
hamchapman merged 2 commits into
masterfrom
hc/add-map-sort-option
Dec 13, 2025
Merged

Add option (and make it the default) to sort maps by key when encoding #121
hamchapman merged 2 commits into
masterfrom
hc/add-map-sort-option

Conversation

@hamchapman

Copy link
Copy Markdown
Collaborator

This means that we're now following this part of RFC 8949:

The keys in every map MUST be sorted in the bytewise lexicographic order of their deterministic encodings.


Supersedes:

beatt83 and others added 2 commits August 29, 2025 14:13
so it does not introduce breaking changes this flag is set as default to true

Signed-off-by: Goncalo Frade <goncalofrade08@gmail.com>
@hamchapman

Copy link
Copy Markdown
Collaborator Author

tvOS CI failures are CI tooling/infrastructure related and so I'm ignoring them and merging. The issue should be addressed in a separate PR

@hamchapman hamchapman merged commit 5b4b235 into master Dec 13, 2025
2 of 3 checks passed
@hamchapman hamchapman deleted the hc/add-map-sort-option branch December 15, 2025 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants