I have a NSArray containing some objects.
NSArray *firstArray = [NSArray arrayWithObjects:obj, plop, color, shape, nil];
Now I have another NSArray containing only objects from the first NSArray, but not in the same order.
NSArray *secondArray = [NSArray arrayWithObjects: shape, color, plop, nil];
I would like to sort the secondArray in the same order that in the firstArray.
I want secondArray to be :
- plop
- color
- shape