I am using TouchJSON to retrieve info for my app and put it in a dictionary. I would like to be able to sort it by values like difficulty and rating. How would I go about this? I have included my .m file.
Thanks, enbr
http://pastie.org/1091334
I am using TouchJSON to retrieve info for my app and put it in
Share
You can probably use
NSSortDescriptorto sort the array of dictionaries with specified keys. So, for example, the following can sort the array by the key “ratings” in each dictionary: