Sort an array with special characters - iPhone
- by ncohen
Hi everyone,
I have an array with french strings let say: "égrener" and "exact" I would like to sort it such as égrener is the first. When I do:
NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"name" ascending:YES];
NSArray *sortDescriptors = [NSArray arrayWithObject:descriptor];
NSArray *sortedArray = [myArray sortedArrayUsingDescriptors:sortDescriptors];
I get the é at the end of the list... What should I do?
Thanks