From: Marius Gavrilescu Date: Mon, 7 Dec 2015 16:09:16 +0000 (+0200) Subject: Merge branch 'master' into newmc X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=986c4a18f00206db5efdba6316a4c9cd48c34358;hp=5b035519c22363f5ef7134b7e1479aee1f30925f;p=gruntmaster-page.git Merge branch 'master' into newmc --- diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index c7c6620..c197f85 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -106,7 +106,7 @@ sub dispatch_request{ }, sub (/st/:contest) { - my @pb = map { [$_->{id}, $_->{name}] } @{problem_list contest => $_{contest}}; + my @pb = map { [$_->{id}, $_->{name}] } sort { $a->{value} <=> $b->{value} } @{problem_list contest => $_{contest}}; response st => 'Standings', {problems => \@pb, st => standings $_{contest}}, 10 },