From c0a496ff8fefc638fef75cb39b0ca71dd2d66b07 Mon Sep 17 00:00:00 2001 From: Sangyoon21 <143711987+Sangyoon21@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:06:21 +0300 Subject: [PATCH] Sort by start time --- test-result-summary-client/src/Build/DeepHistory.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test-result-summary-client/src/Build/DeepHistory.jsx b/test-result-summary-client/src/Build/DeepHistory.jsx index 11e3f4e8..0b5016a1 100644 --- a/test-result-summary-client/src/Build/DeepHistory.jsx +++ b/test-result-summary-client/src/Build/DeepHistory.jsx @@ -18,7 +18,7 @@ const DeepHistory = () => { const [searchText, setSearchText] = useState(''); const [sortedInfo, setSortedInfo] = useState({ order: 'descend', - columnKey: 'parentBuild', + columnKey: 'startTime', }); const location = useLocation(); @@ -171,6 +171,7 @@ const DeepHistory = () => { sorter: (a, b) => { return a.startTime.localeCompare(b.startTime); }, + sortOrder: sortedInfo.columnKey === 'startTime' && sortedInfo.order, }, { title: 'Action', @@ -212,6 +213,8 @@ const DeepHistory = () => { title={() => testName} pagination={{ pageSize: 50 }} onChange={handleChange} + defaultSortOrder="descend" + defaultSortField="startTime" /> );