From e6d1827e4887861ad959df6e68e5b301c8c8db86 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Wed, 7 Aug 2019 12:52:07 -0500 Subject: [PATCH] add sort to Name column --- .../src/modules/allListsTable/AllListsTable.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx b/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx index 5d89dc01d..afa17c83f 100644 --- a/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx +++ b/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx @@ -63,6 +63,8 @@ export class AllListsTable extends React.Component<{}, State> { title="Name" dataIndex={nameof("name")} + sorter={(a, b) => a.name.localeCompare(b.name)} + defaultSortOrder={"ascend"} width={200} fixed="left" render={(text: string) =>
{text}
} />