X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FSt.pm;h=f1a42c11fb278ac952a73b232d5724a775cb1d55;hb=ca8b5383e0652370d5f043cc2440a53cc9da8bfc;hp=547eaba544297c8ea7d49947558e9c90ee8a2b5d;hpb=e63eaf407e505337cd02d7bc7ca3010ab6337348;p=plack-app-gruntmaster.git 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;