From: Jason Boyer Date: Fri, 15 Jan 2016 13:39:27 +0000 (-0500) Subject: LP1464767: Sort Org Units by Shortname X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fjboyer%2Flp1464767_sort_aou;p=working%2FEvergreen.git 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 --- 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(