I have a JSON returned NSMutabledictionary that contains the following
OdometerStart = "9 miles";
Size = 40;
StartTime = "01-30-2013 2:30 PM";
Tractor = T04;
OdometerStart = "668 miles";
Size = 40;
StartTime = "01-30-2013 2:23 PM";
Tractor = T04;
I need to sort it by StartTime, is there a way to sort this?
thanks.
There are many ways to make a sort. This is one :
take a look in apple documentation:
https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Collections/Articles/Dictionaries.html
sorting descriptor apple documentation here:
https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/SortDescriptors/Articles/Creating.html