I am sorting an array of custom winery objects by a name attribute.
wineryNames = [NSMutableArray arrayWithArray:[wineryNames sortedArrayUsingComparator:^(Winery *a, Winery *b){
return [a.getName compare:b.getName options:NSCaseInsensitiveSearch];
}]];
I am receiving an error on the return line and the log says 'unrecognized selector'. I have no idea why this isn't working.