ingh.am
ingh.am

Reputation: 26752

Ordering a list of NSStrings in NSMutableArray?

Is it possible to order an NSMutableArray where it's values are NSStrings? I'm looking to order alphabetically. Thanks

Upvotes: 0

Views: 245

Answers (1)

Vladimir
Vladimir

Reputation: 170839

This should work:

NSMutableArray* stringsArray;
...
[stringsArray sortUsingSelector:@selector(compare:)];

Upvotes: 4

Related Questions