From d0d5bac626e81b789a6325771697da68c1fd559b Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 27 Mar 2014 16:22:36 +0200 Subject: [PATCH] Attempt to fix standings --- lib/Gruntmaster/Page/St.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2