Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep order of keys by default #77

Open
runiq opened this issue Feb 28, 2024 · 1 comment
Open

Keep order of keys by default #77

runiq opened this issue Feb 28, 2024 · 1 comment

Comments

@runiq
Copy link

runiq commented Feb 28, 2024

Hey,

thanks a lot for this tool – just installed it and I'm already sold. <3

There's one thing I'd love, however: A way to keep the input order of the keys. Right now, convfmt always sorts the keys alphabetically, which is something I would expect behind a switch.

Again, thank you for this!

@oriontvv
Copy link
Owner

oriontvv commented Mar 1, 2024

Hi, thanks for the feedback!
Unfortunately, for now most of underlying implementations of formats don't support the order of keys and rely on std sorted BTreeMap:

But I'm open to experiments with IndexMap, PRs are very welcome.

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

No branches or pull requests

2 participants