I'm looking for a way to sort an NSMutableArray
of dictionaries based on dates contained in the dictionaries. Each one looks like this:
{
name: tom,
surname: smith,
date of birth (NSDate): 2013-02-21 15:25:27
}
I know of the methods earlierDate
etc., but since they only compare two dates I'm just a bit stuck on how to iterate through the array so that I come out with a fully ordered array of dictionaries?