I'm trying to sort a NSMutableArray by a NSArray content.
For example, the content of NSMutableArray (which contains NSMutableDictionnary) is :
{
detail = "Al's legend text";
image = "http://...";
main = "Al's main text;
section = "United States";
},
{
detail = "Yumi's legend text";
image = "http://...";
main = "Yumi's main text;
section = "Japan";
},
{
detail = "Enrico's legend text";
image = "http://...";
main = "Enrico's main text;
section = "Spain";
}, ...
For now, I know how to sort it by key, ascending or descending but what I need is the NSMutableArray be sorted by the following NSArray content :
{ @"Japan",@"France",@"United States",@"Uruguay",@"Spain", ...}
If someone can help me to figure it out. Big thanks !