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.
wineryNamesdefinitely an array containingWineryobjects? And, what does the@interfacedeclaration for the Winery class look like? Does it have a method or property calledgetName?