Improve NSArray comparison in Contacts module
This commit is contained in:
parent
64434bbfad
commit
84412cc538
|
@ -28,8 +28,8 @@
|
||||||
{
|
{
|
||||||
id firstObject, otherFirstObject;
|
id firstObject, otherFirstObject;
|
||||||
|
|
||||||
firstObject = [self objectAtIndex: 0];
|
firstObject = [self count] > 0 ? [self objectAtIndex: 0] : nil;
|
||||||
otherFirstObject = [otherRecord objectAtIndex: 0];
|
otherFirstObject = [otherRecord count] > 0 ? [otherRecord objectAtIndex: 0] : nil;
|
||||||
|
|
||||||
return [firstObject compareCaseInsensitiveAscending: otherFirstObject];
|
return [firstObject compareCaseInsensitiveAscending: otherFirstObject];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue