PostgreSQL and Perl have different sort orders, in particular when comparing job names such as "aspell.x86_64-linux" and "aspellDicts.cs.i686-freebsd". This confused the evaluation comparison code, causing some jobs to appear as "removed". So now we do all the sorting in Perl.
Fixes #105.
X46KWQFNQ4KFKCZHPT5UXKCFGV57WXUWPOHLUHQKIF3ZIQYGZBQQC
my @builds = $eval->builds->search({}, { order_by => ["job", "system", "id"], columns => [@buildListColumns] });
my @builds2 = defined $eval2
? $eval2->builds->search({}, { order_by => ["job", "system", "id"], columns => [@buildListColumns] })
: ();
sub cmpBuilds {
my ($a, $b) = @_;
return $a->get_column('job') cmp $b->get_column('job')
|| $a->get_column('system') cmp $b->get_column('system')
}