I have a simple NSArray which has some arrays as objects which has some dates and strings as objects:
- NSArray (main array) ---------------> table view
- NSArray (secondary array)---> table view cell
- NSDate --------------------> table view cell text label
- NSString -------------------> table view cell detail text label
- etc.
- NSArray (secondary array)---> table view cell
I use the main array for my table view -> each cell got it's own 'secondary array'. Now I want to sort the main array by the NSDate object. It sounds very easy but I have found no solution on the web for it.
I thought about using NSSortDesriptors but those just sort the array by the objects in the main array and not in the secondary array.
Hopefully you can help me
EDIT: Would it fix the problem if I use a NSDictionary as the secondary array?