X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=7b927d5958b27863254b7f4617f497b2e4294e33;hb=bf660b84639bcfd78ce2851bf6b6169b92f9007a;hp=c7c6620ed9f52bfe4952b15ebad4d029cbba8a15;hpb=5b035519c22363f5ef7134b7e1479aee1f30925f;p=plack-app-gruntmaster.git diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index c7c6620..7b927d5 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -28,6 +28,7 @@ use constant FORMAT_EXTENSION => { GOLANG => 'go', GOLFSCRIPT => 'gs', HASKELL => 'hs', + OBERON => 'm', MONO => 'cs', JAVA => 'java', PASCAL => 'pas', @@ -106,7 +107,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 },