LP1883126 Angular accesskey sort repair
authorBill Erickson <berickxx@gmail.com>
Wed, 10 Jun 2020 15:46:39 +0000 (11:46 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 23 Sep 2020 17:47:22 +0000 (13:47 -0400)
Fixes sorting issue in Angular egAccessKey directive to ensure that the
most recent additions are given highest priority and to ensure that
like keys (same action) are sorted next to each other in the control-h
help dialog.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/eg2/src/app/share/accesskey/accesskey.service.ts

index 34d6666..3b73234 100644 (file)
@@ -34,7 +34,7 @@ export class AccessKeyService {
                     a.shadowed = true;
                 }
             }
-            list.unshift(a);
+            list.push(a);
         });
         list.unshift(assn);