From 0b68f6bf3af833336585936f4f13e56a9e95bfe2 Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Sat, 17 Feb 2018 12:44:40 -0600 Subject: [PATCH] add default case insensitve sort ref #244 partiall resolves issue, but would be better for API results to be sorted case insensitve --- src/FilterLists.Web/ClientApp/components/Home.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index 197c5112c..5ebc9497c 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -33,12 +33,14 @@ export class Home extends React.Component, IFilterListsS private static renderFilterListsTable(filterLists: IFilterListSummaryDto[]) { return row[filter.id].toUpperCase().startsWith(filter.value.toUpperCase()) + filterMethod: (filter: any, row: any) => row[filter.id].toUpperCase().startsWith(filter.value.toUpperCase()), + sortMethod: (a: any, b: any) => a.toUpperCase() > b.toUpperCase() ? 1 : -1 }, { Header: "Details",