From: Jane Sandberg <sandbej@linnbenton.edu>
Date: Thu, 22 Mar 2018 14:28:27 +0000 (-0700)
Subject: LP1119370: Corrects sorting in the list of z39.50 services
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=808be2f91b59cc7e395e264cf43480ae885bf3ef;p=evergreen%2Fjoelewis.git

LP1119370: Corrects sorting in the list of z39.50 services

To test
-------
[1] Add several z39.50 servers, with names starting with both
lower case and capital letters.
[2] In the Web client, go to Cataloging > Import Record from
Z39.50. The list of Services and Credentials will be sorted
in order alphabetically twice -- first for names that start
with a capital letter, then for names that start with lower
case letters.
[3] Apply this patch and repeat step 2.  This time, the list
should be sorted alphabetically, and then have Local Catalog
at the very bottom of the list.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Ben Shum <ben@evergreener.net>
---

diff --git a/Open-ILS/src/templates/staff/cat/z3950/t_target.tt2 b/Open-ILS/src/templates/staff/cat/z3950/t_target.tt2
index 17ca47588e..0ca0e6cf74 100644
--- a/Open-ILS/src/templates/staff/cat/z3950/t_target.tt2
+++ b/Open-ILS/src/templates/staff/cat/z3950/t_target.tt2
@@ -1,4 +1,4 @@
-<div ng-repeat="target in targets" class="z3950-target-list">
+<div ng-repeat="target in targets | orderBy:'settings.label'" class="z3950-target-list">
     <div class="checkbox">
         <input ng-model="target.selected" type="checkbox">
     <div>