0

Possible Duplicate:
Sort NSArray of date strings or objects

Hello, I want to sort an NSMutableArray. The MutableArray contain NSstrings.Strings have this form "20112505" YYYY-MM-DD . How can i sort it ? thank you

1
  • 2
    Your example date doesn't match your format string. If the format string is correct, you can just sort lexicographically using the sort methods on NSMutableArray. Commented May 25, 2011 at 14:46

1 Answer 1

2
[yourMutableArray sortUsingSelector:@selector(compare:)];
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.