Order by speed correctly.
authorCMDR furrycat <elite@furrycat.net>
Tue, 26 Jan 2016 09:36:41 +0000 (04:36 -0500)
committerCMDR furrycat <elite@furrycat.net>
Tue, 26 Jan 2016 09:36:41 +0000 (04:36 -0500)
propel/build/classes/buckyball/Entry.php

index 070ea7c..0987b11 100644 (file)
@@ -30,13 +30,13 @@ class Entry extends BaseEntry
   function ByFastestLap($a, $b) {
     $A = $a->getFastestLap(); $B = $b->getFastestLap();
     if ($A == $B) return 0;
-    return $A < $B ? -1 : 1;
+    return $A < $B ? 1 : -1;
   }
 
   function ByAverageLap($a, $b) {
     $A = $a->getAverageLap(); $B = $b->getAverageLap();
     if ($A == $B) return 0;
-    return $A < $B ? -1 : 1;
+    return $A < $B ? 1 : -1;
   }
 
   function getName() {