Sorting NSArray based on other Array with custom classes
问题 I desperately need to sort an array: heres the situation, I need to rearrange / sort and replace arrays based on other an object class from another array. ParentClass :NSObject{ NSString *name; NSNumber *type; } This is the parent class, which fills up the parentArray parentArray = { parentA, parentB, parentC } This is another object class, it has ParentClass *parent. @class ParentClass; EntryClass: NSObject{ NSString *name; NSNumber *number; ParentClass *parent; } Now I have an array