On sorting an array i get : 1,10,2,3,4,5,6,7,8,9. What went wrong ?
My code was:
NSArray *sortedArray = [optionKeys sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
where optionKeys were: 7,3,8,4,9,5,1,6,2,10
i had also tried CaseInsensitiveCompare: and got the same result.