webstaff: sort prefix/suffix selectors by sortkey
authorGalen Charlton <gmc@esilibrary.com>
Tue, 20 Oct 2015 19:12:44 +0000 (19:12 +0000)
committerKathy Lussier <klussier@masslnc.org>
Tue, 2 Feb 2016 19:58:52 +0000 (14:58 -0500)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index 2a3d37a..6902a18 100644 (file)
@@ -106,7 +106,7 @@ function(egCore , $q) {
     service.get_prefixes = function(org) {
         return egCore.pcrud.search('acnp',
             {owning_lib : egCore.org.fullPath(org, true)},
-            null, {atomic : true}
+            {order_by : { acnp : 'label_sortkey' }}, {atomic : true}
         );
 
     };
@@ -133,7 +133,7 @@ function(egCore , $q) {
     service.get_suffixes = function(org) {
         return egCore.pcrud.search('acns',
             {owning_lib : egCore.org.fullPath(org, true)},
-            null, {atomic : true}
+            {order_by : { acns : 'label_sortkey' }}, {atomic : true}
         );
 
     };