I have a NSMutableArray that has custom objects in it. Each object does have a name attribute. Is there a way to use
[myArray sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)]
on the name somehow? Like
[myArray.name sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)]
Or am I better off writing a sort function for my custom class to sort by name? Thanks.