NSSortDescriptor to sort strings with numbers numerically


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. [NSSortDescriptor sortDescriptorWithKey:@"name"
  2. ascending:YES
  3. selector:@selector(localizedStandardCompare:)]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.