From 3509a70ee9724545b85d960e2fc16e692abf80e7 Mon Sep 17 00:00:00 2001 From: Radoslaw Szwajkowski Date: Thu, 23 May 2024 17:49:24 +0200 Subject: [PATCH] Revert to numeric sort for tasks Signed-off-by: Radoslaw Szwajkowski --- client/src/app/queries/tasks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/queries/tasks.ts b/client/src/app/queries/tasks.ts index 1260a3e7f1..9d07bd42c5 100644 --- a/client/src/app/queries/tasks.ts +++ b/client/src/app/queries/tasks.ts @@ -25,7 +25,7 @@ export const useFetchTasks = ( // sort by application.id (ascending) then createTime (newest to oldest) .sort((a, b) => a.application.id !== b.application.id - ? universalComparator(a.application.id, b.application.id) + ? a.application.id - b.application.id : -1 * universalComparator(a.createTime, b.createTime) ) // remove old tasks for each application