Skip to content

Commit

Permalink
Revert to numeric sort for tasks
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Szwajkowski <rszwajko@redhat.com>
  • Loading branch information
rszwajko committed May 23, 2024
1 parent aa8b8b5 commit 3509a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/app/queries/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3509a70

Please sign in to comment.