From a71fbd3d720d88158b730823a49e7722de2ca55a Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Fri, 15 Jan 2016 08:39:27 -0500 Subject: [PATCH] LP1464767: Sort Org Units by Shortname Depending on future use cases this may need to be made more generic, but as far as I'm currently aware the only use for this list is to be displayed by shortname, which is how they're now sorted. Signed-off-by: Jason Boyer --- Open-ILS/web/js/ui/default/staff/services/env.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/services/env.js b/Open-ILS/web/js/ui/default/staff/services/env.js index 25198fae7c..e948fb5f22 100644 --- a/Open-ILS/web/js/ui/default/staff/services/env.js +++ b/Open-ILS/web/js/ui/default/staff/services/env.js @@ -147,7 +147,7 @@ function($q, $window , egAuth, egPCRUD, egIDL) { } return egPCRUD.search('aou', {parent_ou : null}, - {flesh : -1, flesh_fields : {aou : ['children', 'ou_type']}} + {flesh : -1, flesh_fields : {aou : ['children', 'ou_type']}, order_by : {aou : 'shortname ASC'}} ).then( function(tree) { $window.sessionStorage.setItem( -- 2.11.0