From 808be2f91b59cc7e395e264cf43480ae885bf3ef Mon Sep 17 00:00:00 2001
From: Jane Sandberg <sandbej@linnbenton.edu>
Date: Thu, 22 Mar 2018 07:28:27 -0700
Subject: [PATCH] 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>
---
 Open-ILS/src/templates/staff/cat/z3950/t_target.tt2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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>
-- 
2.11.0