From: Marius Gavrilescu Date: Thu, 27 Mar 2014 14:22:36 +0000 (+0200) Subject: Attempt to fix standings X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=commitdiff_plain;h=d0d5bac626e81b789a6325771697da68c1fd559b Attempt to fix standings --- diff --git a/lib/Gruntmaster/Page/St.pm b/lib/Gruntmaster/Page/St.pm index 547eaba..f1a42c1 100644 --- a/lib/Gruntmaster/Page/St.pm +++ b/lib/Gruntmaster/Page/St.pm @@ -28,7 +28,7 @@ sub _generate{ my @problems = map { $_->problem } db($env)->contest_problems->search({contest => $ct && $ct->id}, {qw/join problem order_by problem.level/}); my (%scores, %tries); - for my $job (db($env)->jobs->search({contest => $ct && $ct->id})) { + for my $job (db($env)->jobs->search({contest => $ct && $ct->id}, {order_by => 'id'})) { if ($ct) { my $time = $job->date - $ct->start;