From cf22c656aa3dd064d854f751d78ea401558674ae Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 7 Dec 2015 18:09:11 +0200 Subject: [PATCH] Sort problems correctly in Standings header --- lib/Plack/App/Gruntmaster.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, -- 2.39.2