Reverse contest sort order
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 28 Feb 2014 20:13:16 +0000 (22:13 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 28 Feb 2014 20:13:16 +0000 (22:13 +0200)
lib/Gruntmaster/Page/Generic.pm

index 3fdd47c0a157d7e190ab5c5c6464bf1e5b53787e..c54c9fc3d2bc752709f7683195e9467c09df1803 100644 (file)
@@ -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} } };
 };
This page took 0.010246 seconds and 4 git commands to generate.