Skip to content

Commit

Permalink
Fix feed sorting (#3155)
Browse files Browse the repository at this point in the history
Closes #2915
  • Loading branch information
qwerty287 authored Jan 9, 2024
1 parent 7786028 commit 631b7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function comparePipelines(a: Pipeline, b: Pipeline): number {
export function comparePipelinesWithStatus(a: Pipeline, b: Pipeline): number {
const bPriority = ['pending', 'running', 'started'].includes(b.status) ? 1 : 0;
const aPriority = ['pending', 'running', 'started'].includes(a.status) ? 1 : 0;
return bPriority - aPriority;
return bPriority - aPriority || comparePipelines(a, b);
}

export function isPipelineActive(pipeline: Pipeline): boolean {
Expand Down

0 comments on commit 631b7c2

Please sign in to comment.