I am using the method [myArray sortedArrayUsingSelector:@selector(compare:)]
with an NSArray
that contains a lot of numbers.
When I don't use this function they get printed as:
99,
161,
278,
179,
180,
189,
182,
125
As you can see they are not ordered.
And when I actually use the function, they get printed as:
125,
161,
179,
180,
182,
189,
278,
99
They are ordered now, but the problem here is that the 99
stays at the end! Any idea of why this is happening?