Make shipyard sorting not case sensitive
This commit is contained in:
parent
655b6fecb4
commit
09da245d61
@ -8727,7 +8727,7 @@ static OOComparisonResult compareName(id dict1, id dict2, void *context)
|
||||
NSString *name1 = [ship1 oo_stringForKey:KEY_NAME];
|
||||
NSString *name2 = [ship2 oo_stringForKey:KEY_NAME];
|
||||
|
||||
NSComparisonResult result = [name1 compare:name2];
|
||||
NSComparisonResult result = [[name1 lowercaseString] compare:[name2 lowercaseString]];
|
||||
if (result != NSOrderedSame)
|
||||
return result;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user