I have an NSArray of DiaryEntry objects, where each DiaryEntry has an NSDate date\_ field.

I want to display all of the DiaryEntrys in a table view, grouped by the day of the week,
where each group is sorted by date in ascending order.

So, I need to take the NSArray, and convert to an NSDictionary of arrays, where the key is the day of the week (NSDate), and the value is an NSArray of DiaryEntrys, ordered by the date\_ field in ascending order.

I figure this is a pretty common operation, but can't find any sample code anywhere.

Any help is greatly appreciated.

Thanks!!