From 98375e9086be857ba654d3be18c489c9434ef627 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Mon, 10 Jan 2022 10:50:34 -0800 Subject: [PATCH] BuildDiff: bring back the sort --- src/lib/Hydra/Helper/BuildDiff.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/Hydra/Helper/BuildDiff.pm b/src/lib/Hydra/Helper/BuildDiff.pm index 612ecbf3..56d7ddae 100644 --- a/src/lib/Hydra/Helper/BuildDiff.pm +++ b/src/lib/Hydra/Helper/BuildDiff.pm @@ -17,13 +17,13 @@ sub cmpBuilds { || $left->get_column('system') cmp $right->get_column('system') } - # $builds = sort { cmpBuilds($a, $b) } $builds; - # $builds2 = sort { cmpBuilds($a, $b) } $builds2; - sub buildDiff { my ($builds, $builds2) = @_; # $builds is the list of current builds, and $builds2 is the list of previous (compared-to) builds + $builds = [sort { cmpBuilds($a, $b) } @{$builds}]; + $builds2 = [sort { cmpBuilds($a, $b) } @{$builds2}]; + my $ret = { stillSucceed => [], stillFail => [],