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

The keys in the generated JSON content are unordered #6901

Open
liby opened this issue Sep 4, 2023 · 1 comment
Open

The keys in the generated JSON content are unordered #6901

liby opened this issue Sep 4, 2023 · 1 comment
Labels
pinned type: bug code to address defects in shipped code

Comments

@liby
Copy link

liby commented Sep 4, 2023

Describe the bug

The keys in the generated JSON content are unordered.

To Reproduce

https://github.com/liby/decap-cms-field-sort-issue#reproduction-steps

Expected behavior

The keys are sorted in alphabetical order from A-Z or as described in the document:

The fields option maps editor UI widgets to field-value pairs in the saved file. The order of the fields in your Decap CMS config.yml file determines their order in the editor UI and in the saved file.

Screenshots

image

Applicable Versions:

  • Decap CMS version: 3.0.0
  • Git provider: GitHub
  • OS: macOS 13.5.1 (22G90)
  • Browser version: Chrome 116.0.5845.140
  • Node.JS version: 18.17.0

CMS configuration

https://github.com/liby/decap-cms-field-sort-issue/blob/main/admin/config.yml

Additional context

Possible relevant discussions.

@liby liby added the type: bug code to address defects in shipped code label Sep 4, 2023
@martinjagodic
Copy link
Member

@liby you're onto something. I think this was raised before but I can't find the relevant issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pinned type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

2 participants