Author: toad
Date: 2008-06-25 21:19:44 +0000 (Wed, 25 Jun 2008)
New Revision: 20720

Modified:
   branches/db4o/freenet/src/freenet/client/async/RegisterMeSortKey.java
Log:
Was back-to-front

Modified: branches/db4o/freenet/src/freenet/client/async/RegisterMeSortKey.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/RegisterMeSortKey.java       
2008-06-25 21:17:03 UTC (rev 20719)
+++ branches/db4o/freenet/src/freenet/client/async/RegisterMeSortKey.java       
2008-06-25 21:19:44 UTC (rev 20720)
@@ -13,13 +13,13 @@
        public int compareTo(Object arg0) {
                RegisterMeSortKey key = (RegisterMeSortKey) arg0;
                if(key.priority < priority)
+                       return 1;
+               if(key.priority > priority)
                        return -1;
-               if(key.priority > priority)
+               if(key.addedTime < addedTime)
                        return 1;
-               if(key.addedTime < addedTime)
+               if(key.addedTime > addedTime)
                        return -1;
-               if(key.addedTime > addedTime)
-                       return 1;
                return 0;
        }



Reply via email to