Transient sectionNameKeyPath & NSSortDescriptor NSFetchedResultsController
问题 I have a list of tasks within Core Data. I fetch them into a UITableView using an NSFetchedResultsController. I need custom sections in a custom order: OVERDUE ACTIVE ONGOING POSTPONED COMPLETED To determine what section a task should go in I use a derived transient attribute calculated on the fly based on other attributes in the relative object. Unfortunately you cannot pass a derived value as a sort descriptor used by a fetch request. This is because a fetch relies on already having data it