Possible Duplicate:
Sorting NSString values as if NSInteger using NSSortDescriptor
I have an Array that I fill with my NSMutableDictionary.. and I use this:
myArray =[[myDict allKeys]sortedArrayUsingSelector:@selector(IDONTKNOW:)];
AllKeys of myDicts are NSStrings… like 123.423 or 423.343… I need to sort the new myArray by incremental numbers.. 12.234 45.3343 522.533 5432.66 etc etc
What must insert in @selector to do this properly? Thanks
You can use an
NSSortDescriptorand passdoubleValueas the key.