I am having NSMutableArray
containing objects like
[1,10,100,101,32A,32B,75,76,77,GAOTHAN]
, I want to sort this array in ascending order.
I am using below code but it is not working, As I don't have any key in my array. If anybody having solution please let me know.
NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"self"
ascending:NO];
NSArray *descriptors = [NSArray arrayWithObject:descriptor];
NSArray *reverseOrder = [dateArray sortedArrayUsingDescriptors:descriptors];