NSArray *myArray = [myArray sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
or
NSSortDescriptor *lastNameDescriptor = [[NSSortDescriptor alloc] initWithKey:@"lastName" ascending:YES];
[myArray sortUsingDescriptors:[NSArray arrayWithObject:lastNameDescriptor]];