mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
Sort pipelines based on creation date (#1159)
This commit is contained in:
parent
d45310c804
commit
297732eab8
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue