I have an NSMutableArray of model objects. Each model object contains an NSArray of NSNumbers. I want to sort the model objects based on the lowest NSNumber value from their respective number arrays.
What's the best way to implement this using sortUsingFunction (or sortUsingSelector)? I'm still supporting iOS 3.2 so I can't use blocks.
Currently, I'm tagging each model object with the lowest NSNumber value, and then using an NSSortDescriptor on the tag key... but I'm sure there's a better way...