Sorting Array of Objects by Date into TableView
问题 I used this answer to sort 2 objects by date, and it worked perfectly : Get one NSArray I now need to sort 3 objects by date, and can't quite modify what I have to get that right . All of the Articles from the API/RSS feeds will be sorted by date in 1 tableView . Here's what I tried: - (void)sortCombinedModel { // All 3 [self.combinedModel sortUsingComparator:^NSComparisonResult(id a, id b, id c) { NSDate *dateA, *dateB, *dateC; dateA = ([a isKindOfClass:[FeedRSS self]])? ((FeedRSS *)a)