Problem/Motivation
The sub-fields sorting is driven off of the form display settings but this isn't respected in the default values input in the field settings form. The logic for sorting can also be simplified in a single function in the CustomWidgetBase and thus we can reduce code in the widgets that extend it.
Proposed resolution
In widget base, Get rid of sortFields() and refactor the getCustomFieldItems() to include sorting and current state so it can be reused.
Issue fork custom_field-3585300
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
apmsooner commentedComment #5
apmsooner commented