From e1941729fdab9c50a57979f710c306b8801df275 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Fri, 8 Jun 2018 11:45:17 -0500 Subject: [PATCH] tweak date added sort method ref #271 --- src/FilterLists.Web/ClientApp/components/Home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index c953e6193..c55297504 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -99,7 +99,7 @@ export class Home extends React.Component, IHomeState> { filterable: true, filterMethod: (filter: any, row: any) => row[filter.id].toUpperCase() .includes(filter.value.toUpperCase()), - sortMethod: (a: any, b: any) => a.join().toUpperCase() > b.join().toUpperCase() ? 1 : -1, + sortMethod: (a: any, b: any) => a > b ? 1 : -1, Cell: (cell: any) =>
{moment(cell.value).format("M-D-YY")}
, style: { whiteSpace: "inherit" }, width: 70,