Set search preferences is currently ordered by shortname in
Admin > Workstation Administration > Set Search Preferences.
This patch adds functionality that orders each org unit and
its children in alphabetical order by name, rather than by
shortname.
Signed-off-by: Adam Bowling <abowling@emeralddata.net>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
}
}
function add_aou(aou, depth) {
+ if (aou.children().length > 0) {
+ aou.children().sort(function(a, b) {
+ if (a.name() < b.name()) return -1;
+ if (a.name() > b.name()) return 1;
+ return 0;
+ });
+ }
search_lib_box.appendItem(depth + aou.name(), aou.id(), '');
pref_lib_box.appendItem(depth + aou.name(), aou.id(), '');
for(var i = 0; i < aou.children().length; i++)