iOS: Sorting and grouping NSFetchedResultsController
问题 I have two tables with the following structure MainCategory: name position hasSubCategories SubCategory: name position display belongsToMainCategory Now I want to display all subcategories (where display attribute = YES) grouped by main category. The main category sections should be sorted as defined by position and the subcategories itself (within the section) by their position attribute. (name by the way can be the same for a certain main category...my tables have more attributes but they