Improve NSArray comparison in Contacts module

pull/222/merge
Francis Lachapelle 2016-10-05 15:38:54 -04:00
parent 64434bbfad
commit 84412cc538
1 changed files with 2 additions and 2 deletions

View File

@ -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];
}