Hi Jessy,Thanks for your timely help. I have managed to sort the section headers as follows:
NSArray *allKeys = [specificDictionary allKeys];
NSLog(@"all keys titleForHeaderInSection is %@", allKeys); // not ordered[( "30/10/2012 11:34:05","30/10/2012 11:34:16","30/10/2012 11:34:28","30/10/2012 11:34:41","30/10/2012 11:06:06")]NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"self" ascending:NO];NSArray *descriptors = [NSArray arrayWithObject:descriptor];NSLog(@"descriptors %@", descriptors);[descriptor release];
NSArray *reverseOrder = [allKeys sortedArrayUsingDescriptors:descriptors];NSLog(@"reverseOrder %@", reverseOrder); // orderedreverseOrder ("30/10/2012 11:34:41","30/10/2012 11:34:28","30/10/2012 11:34:16","30/10/2012 11:34:05","30/10/2012 11:06:06")But I am finding difficulty in implementing this in "allValues" where my array looks like the below:allValues ("Sound B,Word Medial,50%,30/10/2012 11:34","Sound B,Word Initial Single,100%,30/10/2012 11:06")How could I sort these elements in the array (according to date present in it i.e. "30/12/2012 11:34").Kindly help.Regards,Bharani..