So, I have the following code that sorts a sample of kernel data using the "color" attribute.
sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"color" ascending:YES]; sortDescriptors = [[NSArray alloc] initWithObjects:sortDescriptor, nil]; [fetchRequest setSortDescriptors:sortDescriptors];
Is there a way to take the result of this view and now sort by date (another attribute) in each color "group"?
Basically, here is an example of what I'm getting now ...
RED - 11/1/2010 RED - 9/8/2010 RED - 11/9/2011 RED - 10/20/2011 GREEN - 11/1/2010 GREEN - 9/8/2010 GREEN - 11/9/2011 BLUE - 10/20/2011 BLUE - 11/1/2010 BLUE - 9/8/2010
And here is how I would like the results to look ...
RED - 9/8/2010 RED - 11/1/2010 RED - 10/20/2011 RED - 11/9/2011 GREEN - 9/8/2010 GREEN - 11/1/2010 GREEN - 11/9/2011 BLUE - 9/8/2010 BLUE - 11/1/2010 BLUE - 10/20/2011
I'm sure it can be done, but I'm just not sure how to do it.
source share