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 like this,
NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"anyDateField" ascending:YES]; NSMutableArray *arr = [[array sortedArrayUsingDescriptors:[NSArray arrayWithObjects:descriptor,nil]]mutableCopy];