blob: 5b3b5cdf5825e6b4562000d2a226b49bf50da443 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff -ru cydia-1.0.3032/cydia/Cydia.mm cydia-1.0.3032+iPhone/cydia/Cydia.mm
--- cydia-1.0.3032/cydia/Cydia.mm 2009-09-09 22:03:03.000000000 +0000
+++ cydia-1.0.3032+iPhone/cydia/Cydia.mm 2009-09-10 03:46:28.000000000 +0000
@@ -1932,6 +1932,11 @@
CYString &rhi(PackageName(rhs, @selector(cyname)));
CFStringRef lhn(lhi), rhn(rhi);
+ if (lhn == NULL)
+ return rhn == NULL ? NSOrderedSame : NSOrderedAscending;
+ else if (rhn == NULL)
+ return NSOrderedDescending;
+
_profile(PackageNameCompare$NumbersLast)
if (!lhi.empty() && !rhi.empty()) {
UniChar lhc(CFStringGetCharacterAtIndex(lhn, 0));
|