Skip to content

Commit aa53bbf

Browse files
authored
Sort "more fields" dropdown items (#10181)
1 parent b6cdfbf commit aa53bbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/ui/form_fields.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export function uiFormFields(context) {
1616
function formFields(selection) {
1717
var allowedFields = _fieldsArr.filter(function(field) { return field.isAllowed(); });
1818
var shown = allowedFields.filter(function(field) { return field.isShown(); });
19-
var notShown = allowedFields.filter(function(field) { return !field.isShown(); });
19+
var notShown = allowedFields.filter(function(field) { return !field.isShown(); })
20+
.sort(function(a, b) { return (a.universal === b.universal ? 0 : a.universal ? 1 : -1); });
2021

2122
var container = selection.selectAll('.form-fields-container')
2223
.data([0]);

0 commit comments

Comments
 (0)