Describe the bug
When selecting auto populate source for "Select" type fields, the option sets derived from custom data fields do not appear to be sorted at all, let alone by their logical grouping in CiviCRM. It looks like they just show up in the order they're inserted into the database, or possibly the field's weight at best.
To Reproduce
Steps to reproduce the behavior:
Add a dropdown field
Check on ‘Auto populate’
Open the ‘Source’ drop-down
The CiviCRM custom data options are in a whacky order, especially when you have multiple custom data groups
Expected behavior
Options derived from custom data groups should be ordered by custom data group and then weight, and preferentially be grouped together using <optgroup>s, as the price set options are.
Screenshots
Desktop (please complete the following information):
Agileware ref CFC-40
Describe the bug When selecting auto populate source for "Select" type fields, the option sets derived from custom data fields do not appear to be sorted at all, let alone by their logical grouping in CiviCRM. It looks like they just show up in the order they're inserted into the database, or possibly the field's weight at best.
To Reproduce Steps to reproduce the behavior:
Expected behavior Options derived from custom data groups should be ordered by custom data group and then weight, and preferentially be grouped together using
<optgroup>
s, as the price set options are.Screenshots
Desktop (please complete the following information): Agileware ref CFC-40