I've seen lots of questions how to sort 1,10,2,3 etc.
I have some Json data imported in the form: @"arrived"
, @"boarding"
, @"1"
, @"2"
, @"3"
etc..
I currently have only a case-insensitive sort:
sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"time" ascending:YES selector:@selector(caseInsensitiveCompare:)];
This sorts the numbers first, and the words last, where I need it in the form shown above.
What options do I have to do this? Thanks