summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-09 22:54:04 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-09 22:54:04 -0800
commit9622e0e3da95d0a01f3c2ae3fe714a4a10a093e8 (patch)
tree84a6d1afb8948cbf73b3d1d75ed6e5f689e63432
parent60bef54000c8a1b6f2bd8c7633fb06c46fa523e3 (diff)
The Sources list hasn't been sorted since 2008.
-rw-r--r--MobileCydia.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 90adca5..25b55d7 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -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];