From: Marius Gavrilescu Date: Fri, 28 Feb 2014 20:13:16 +0000 (+0200) Subject: Reverse contest sort order X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=commitdiff_plain;h=d9f11916894f292e95891470bd43b513c1c5a1bc Reverse contest sort order --- diff --git a/lib/Gruntmaster/Page/Generic.pm b/lib/Gruntmaster/Page/Generic.pm index 3fdd47c..c54c9fc 100644 --- a/lib/Gruntmaster/Page/Generic.pm +++ b/lib/Gruntmaster/Page/Generic.pm @@ -114,7 +114,7 @@ thing { thing { params qw/ct contest Contests/; - sortby { $a->{start} <=> $b->{start} }; + sortby { $b->{start} <=> $a->{start} }; group { time < $_->{start} ? 'pending' : time > $_->{end} ? 'finished' : 'running' }; mangle { $_->{started} = time >= $_->{start}; $_->{owner_name} = do { local $Gruntmaster::Data::contest; user_name $_->{owner} } }; };