I have a problem with sorting… I need to sort NSArray containing NSDictionaries. As an order key I have to use element from the NSDictionary.
I was reading a little about sorting NSArray but it is not clear to me.
Could you try help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use an
NSSortDescriptorand a keypath. Assuming the key for the dictionary iskey: