From 06d62278dc778a497e0936efc1aba2ff239c8b96 Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Tue, 7 Nov 2023 17:13:43 +0100 Subject: [PATCH] fix: change request table sort type (#5295) --- .../ChangeRequestsTabs/ChangeRequestsTabs.tsx | 2 +- .../src/component/common/ApiTokenTable/useApiTokenTable.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/changeRequest/ProjectChangeRequests/ChangeRequestsTabs/ChangeRequestsTabs.tsx b/frontend/src/component/changeRequest/ProjectChangeRequests/ChangeRequestsTabs/ChangeRequestsTabs.tsx index b90614a6ef66..24eb47df5f97 100644 --- a/frontend/src/component/changeRequest/ProjectChangeRequests/ChangeRequestsTabs/ChangeRequestsTabs.tsx +++ b/frontend/src/component/changeRequest/ProjectChangeRequests/ChangeRequestsTabs/ChangeRequestsTabs.tsx @@ -162,7 +162,7 @@ export const ChangeRequestsTabs = ({ accessor: 'createdAt', maxWidth: 100, Cell: TimeAgoCell, - sortType: 'alphanumeric', + sortType: 'date', }, { Header: 'Environment', diff --git a/frontend/src/component/common/ApiTokenTable/useApiTokenTable.tsx b/frontend/src/component/common/ApiTokenTable/useApiTokenTable.tsx index 2213f10861d3..cf9e3becce75 100644 --- a/frontend/src/component/common/ApiTokenTable/useApiTokenTable.tsx +++ b/frontend/src/component/common/ApiTokenTable/useApiTokenTable.tsx @@ -72,6 +72,7 @@ export const useApiTokenTable = ( Header: 'Last seen', accessor: 'seenAt', Cell: TimeAgoCell, + sortType: 'date', minWidth: 150, disableGlobalFilter: true, },