Pour les tableaux courts par une clé .. comme le nom .... Mettre la clé sur laquelle vous veulent court votre tableau
Cela court votre tableau Ascending
NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"Your Key" ascending:YES selector:@selector(localizedStandardCompare:)];
NSArray *shortedArray=[Your array sortedArrayUsingDescriptors:[NSArray arrayWithObjects:descriptor,nil]];
Cela va court votre tableau Décroissant
NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"Your Key" ascending:NO selector:@selector(localizedStandardCompare:)];
NSArray *shortedArray=[Your array sortedArrayUsingDescriptors:[NSArray arrayWithObjects:descriptor,nil]];
et aussi, Quelqu'un peut-il me dire, comment peut mettre en œuvre la technique de tri ..! –