How can I perfrom a custom sorting operation on an NSArray. I have one array of strings which is my ordering that I want.
NSArray A = {cat, dog, mouse, pig, donkey}
And I have one array of strings which is not ordered the way I want.
NSArray B = {dog,cat,mouse,donkey,pig}
Whats the best way to put array B in the same order as array A without having to use keys?