Problem/Motivation
The fields in the resourceFields key of the JSON:API resource configuration is currently not deterministically sorted which leads to unwanted changes when updating it.
Steps to reproduce
-
Proposed resolution
Sort the config deterministically using the orderby feature of config sequences. Note that this does not influence the order of the fields in the user interface in any way.
Remaining tasks
-
User interface changes
-
API changes
-
Data model changes
The resourceFields key of JSON:API resource configuration is now always ordered alphabetically by key.
Issue fork jsonapi_extras-3575769
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
tstoecklerComment #4
bbralaGood idea! Thanks