From: Mike Rylander Date: Wed, 3 Jun 2020 18:02:54 +0000 (-0400) Subject: Sort curbside slots by library name in My Account X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=aea25f81f1ba2cd89247a7f448f3414dc70b0c8e;p=working%2FEvergreen.git Sort curbside slots by library name in My Account Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index d714cb390f..1ddf1df2e7 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -1188,7 +1188,7 @@ sub fetch_user_holds { $e->authtoken ); - my @pickup_libs = keys %pickup_libs; + my @pickup_libs = sort { $U->find_org($U->get_org_tree,$a)->name cmp $U->find_org($U->get_org_tree,$b)->name } keys %pickup_libs; return { holds => \@sorted, ids => $hold_ids, all_ids => $all_ids, pickup_libs => \@pickup_libs, curbsides => $curbsides }; }