sort by provider name by default (LH#14)
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 9 Jul 2020 21:27:03 +0000 (17:27 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 9 Jul 2020 21:27:03 +0000 (17:27 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/acq/provider/acq-provider-search.service.ts

index c00a261..0fb528e 100644 (file)
@@ -143,6 +143,9 @@ export class AcqProviderSearchService {
     getDataSource(): GridDataSource {
         const gridSource = new GridDataSource();
 
+        // we'll sort by provder name by default
+        gridSource.sort = [{ name: "name", dir: "ASC" }];
+
         gridSource.getRows = (pager: Pager, sort: any[]) => {
 
             // don't do a search the very first time we