From 8dcc4a3ebc49632c52d108a4af2bfb794beb04eb Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Fri, 28 Sep 2018 05:51:08 -0500 Subject: [PATCH] try fix rule count sort --- .../home/components/listsTable/columns/RuleCount.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/RuleCount.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/RuleCount.tsx index a2771bfeb..ce1a61f76 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/RuleCount.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/RuleCount.tsx @@ -16,8 +16,12 @@ export const RuleCount = (columnVisibility: IColumnVisibility[]) => } as Column); const sortMethod = (a: string, b: string) => - a > b - ? 1 + a + ? b + ? a > b + ? 1 + : -1 + : 1 : -1; const Cell = (ruleCount: number) =>