1
0
Fork 0

Sort checklist groups alphabetically

Patch from Michael DANILOV
This commit is contained in:
Stuart Buchanan 2020-10-11 19:58:44 +01:00
parent e1bc3d6744
commit 7414c50305

View file

@ -101,7 +101,7 @@
var combo = gui.findElementByName(dlgRoot, "checklist-group-combo"); var combo = gui.findElementByName(dlgRoot, "checklist-group-combo");
var idx = 0; var idx = 0;
foreach (var grp_name; keys(checklist_group)) { foreach (var grp_name; sort(keys(checklist_group), func(a,b){string.icmp(a,b)})) {
combo.getChild("value", idx, 1).setValue(grp_name); combo.getChild("value", idx, 1).setValue(grp_name);
idx = idx + 1; idx = idx + 1;
} }