Sort contests by start date
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 13 Feb 2014 22:28:22 +0000 (00:28 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 13 Feb 2014 22:28:22 +0000 (00:28 +0200)
lib/Gruntmaster/Page/Ct.pm

index b62b9751fd82972dd8d6aee59c1962d24e1a82ae..a21bf77809d352a78ef06c358833c3467945cda9 100644 (file)
@@ -12,7 +12,7 @@ sub _generate{
        debug $env => "language is '$lang'";
 
        my (@running, @pending, @finished);
-       for (contests) {
+       for (sort {contest_start $a <=> contest_start $b}contests) {
                my $ct = { id => $_,
                                   name => contest_name,
                                   start => strftime ('%c', localtime contest_start),
This page took 0.010754 seconds and 4 git commands to generate.