[dev] Simple nag fix

Nuno Loureiro nuno@co.eth.pt
24 Jul 2002 18:46:58 +0100


Seems like that listing tasks and set reverse order by priority is not
working...


Index: Nag.php
===================================================================
RCS file: /repository/nag/lib/Nag.php,v
retrieving revision 1.43
diff -u -r1.43 Nag.php
--- Nag.php     6 Jun 2002 12:48:17 -0000       1.43
+++ Nag.php     24 Jul 2002 17:45:11 -0000
@@ -390,7 +390,7 @@
 function _rsortByPriority($a, $b)
 {
     if ($a['priority'] == $b['priority']) return 0;
-    return ($a['priority'] < $b['priority']) ? -1 : 1;
+    return ($a['priority'] > $b['priority']) ? -1 : 1;
 }
 
 /**



-- 
Nuno Loureiro <nuno@eth.pt>
Ethernet, Soluções Informáticas, LDA
http://www.eth.pt