LP1857351 (follow-up): Fix typo that led to failing test
authorJane Sandberg <sandbej@linnbenton.edu>
Fri, 29 Jan 2021 00:19:31 +0000 (16:19 -0800)
committerJane Sandberg <sandbej@linnbenton.edu>
Fri, 29 Jan 2021 00:19:31 +0000 (16:19 -0800)
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/core/idl.service.ts

index 4f00c53..662c735 100644 (file)
@@ -252,7 +252,7 @@ export class IdlService {
 
             // If no order specified and no labels to sort by,
             // default to sorting by field name
 
             // If no order specified and no labels to sort by,
             // default to sorting by field name
-            return (a.label < b.label) ? -1 : 1;
+            return (a.name < b.name) ? -1 : 1;
         });
         newList = newList.concat(remainder);
         return newList;
         });
         newList = newList.concat(remainder);
         return newList;