forked from lix-project/hydra
BuildDiff: bring back the sort
This commit is contained in:
parent
1ca786561f
commit
98375e9086
|
@ -17,13 +17,13 @@ sub cmpBuilds {
|
||||||
|| $left->get_column('system') cmp $right->get_column('system')
|
|| $left->get_column('system') cmp $right->get_column('system')
|
||||||
}
|
}
|
||||||
|
|
||||||
# $builds = sort { cmpBuilds($a, $b) } $builds;
|
|
||||||
# $builds2 = sort { cmpBuilds($a, $b) } $builds2;
|
|
||||||
|
|
||||||
sub buildDiff {
|
sub buildDiff {
|
||||||
my ($builds, $builds2) = @_;
|
my ($builds, $builds2) = @_;
|
||||||
# $builds is the list of current builds, and $builds2 is the list of previous (compared-to) builds
|
# $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 = {
|
my $ret = {
|
||||||
stillSucceed => [],
|
stillSucceed => [],
|
||||||
stillFail => [],
|
stillFail => [],
|
||||||
|
|
Loading…
Reference in a new issue