I am attempting to sort an NSArray that is populated with custom objects. Each object has a property startDateTime that is of type NSDate.
startDateTime
The followin
You can achieve this like this,
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"date" ascending:FALSE]; [self.Array sortUsingDescriptors:[NSArray arrayWithObject:sortDescriptor]];