LP1904036 Merge repair
authorBill Erickson <berickxx@gmail.com>
Tue, 13 Jul 2021 14:46:55 +0000 (10:46 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 19 Jan 2022 17:01:15 +0000 (12:01 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/grid/grid.ts

index ca3a766..618799c 100644 (file)
@@ -402,19 +402,6 @@ export class GridColumnSet {
             this.columns.filter(c => c.required && !c.visible));
     }
 
-    // Sorted visible columns followed by sorted non-visible columns.
-    // Note we don't sort this.columns directly as it would impact
-    // grid column display ordering.
-    sortForColPicker(): GridColumn[] {
-        const visible = this.columns.filter(c => c.visible);
-        const invisible = this.columns.filter(c => !c.visible);
-
-        visible.sort((a, b) => a.label < b.label ? -1 : 1);
-        invisible.sort((a, b) => a.label < b.label ? -1 : 1);
-
-        return visible.concat(invisible);
-    }
-
     insertBefore(source: GridColumn, target: GridColumn) {
         let targetIdx = -1;
         let sourceIdx = -1;