From d9f11916894f292e95891470bd43b513c1c5a1bc Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 28 Feb 2014 22:13:16 +0200 Subject: [PATCH] Reverse contest sort order --- lib/Gruntmaster/Page/Generic.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} } }; }; -- 2.39.2