Here's the problem i have :- I have an array
Item1,
Item2,
Item3,
Item4,
Item5,
Item6,
Item7,
....,Item11
I need to sort this array in that specific order ,ofcourse all the values are of type 'NSString'
if i use
sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)
it sorts it like this:-
Item1,
Item10,
Item11,
Item2,
Item3,
Item4,
Item5,
Item6,
Item7,
Item8,
Item9
I can manually extract the numeric value from this but i thought there may be a better way to do this perhaps by using 'NSComparator'.