]> git.saurik.com Git - cydia.git/commitdiff
The Sources list hasn't been sorted since 2008.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 10 Mar 2011 06:54:04 +0000 (22:54 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 10 Mar 2011 06:54:04 +0000 (22:54 -0800)
MobileCydia.mm

index 90adca538f37d007fd9b0e5dd211d10a51266e3c..25b55d7c9bf4276de5b008284123b6a804907cee 100644 (file)
@@ -1489,7 +1489,7 @@ static void PackageImport(const void *key, const void *value, void *context) {
     NSDictionary *lhr = [self record];
     NSDictionary *rhr = [source record];
 
-    if (lhr != rhr)
+    if ((lhr == nil) != (rhr == nil))
         return lhr == nil ? NSOrderedDescending : NSOrderedAscending;
 
     NSString *lhs = [self name];