X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FGeneric.pm;h=c54c9fc3d2bc752709f7683195e9467c09df1803;hp=3fdd47c0a157d7e190ab5c5c6464bf1e5b53787e;hb=d9f11916894f292e95891470bd43b513c1c5a1bc;hpb=2542002f7bfdc9b5ea8b7ddcf6ed64440fece126 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} } }; };