mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-24 07:32:44 +00:00
Improve NSArray comparison in Contacts module
This commit is contained in:
@@ -28,8 +28,8 @@
|
||||
{
|
||||
id firstObject, otherFirstObject;
|
||||
|
||||
firstObject = [self objectAtIndex: 0];
|
||||
otherFirstObject = [otherRecord objectAtIndex: 0];
|
||||
firstObject = [self count] > 0 ? [self objectAtIndex: 0] : nil;
|
||||
otherFirstObject = [otherRecord count] > 0 ? [otherRecord objectAtIndex: 0] : nil;
|
||||
|
||||
return [firstObject compareCaseInsensitiveAscending: otherFirstObject];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user