I have sorted some NSMutableArray
, that has dictionaries with many fields .
2 fields are interested me the most , the date and some count integer number .
I have sorted the array with date :
NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"dateCreated" ascending:YES];
sortedWithDates=[sortedWithDates sortedArrayUsingDescriptors:[NSArray arrayWithObjects:descriptor,nil]];
Now, i want to take only the objects in the array -for today, and sort them again according to this count integer(highest first) .
Is there a simple way to do that with the same NSSortDescriptor
class ?
Thank you .