From 297732eab831ed5924c4a8180baffb4742ece618 Mon Sep 17 00:00:00 2001 From: Anbraten Date: Sat, 3 Sep 2022 19:58:34 +0200 Subject: [PATCH] Sort pipelines based on creation date (#1159) --- web/src/utils/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/utils/helpers.ts b/web/src/utils/helpers.ts index 597b1cbd7..a22863ea8 100644 --- a/web/src/utils/helpers.ts +++ b/web/src/utils/helpers.ts @@ -44,7 +44,7 @@ export function isProcRunning(proc: BuildProc): boolean { * @returns {number} */ export function compareBuilds(a: Build, b: Build): number { - return (b.started_at || b.created_at || -1) - (a.started_at || a.created_at || -1); + return (b.created_at || -1) - (a.created_at || -1); } export function isBuildActive(build: Build): boolean {