BuildDiff: bring back the sort

This commit is contained in:
Cole Helbling 2022-01-10 10:50:34 -08:00
parent 1ca786561f
commit 98375e9086

View file

@ -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 => [],