I have to sort an array of objects by a property of the objects that is a string. How can I do this?
you need to use
-[NSArray sortedArrayUsingSelector:]
or
-[NSMutableArray sortUsingSelector:] and pass @selector(compare:) as the parameter.
-[NSMutableArray sortUsingSelector:]
@selector(compare:)
here's a link to the answer Sort NSArray of date strings or objects