Skip to content

The keys in the generated JSON content are unordered #6901

@liby

Description

@liby

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pinnedtype: bugcode to address defects in shipped code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions