Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I sort an NSDictionary?

Tags:

iphone

O have an NSDictionary. Inside the dictionary there is an array. I want to sort the dictionary and display it's value in ascending order so please any one help me how can I get sorted data?

like image 436
Ankit Vyas Avatar asked Oct 14 '22 06:10

Ankit Vyas


1 Answers

There are three function of NSDictionary...

 – keysSortedByValueUsingSelector:
 – keysSortedByValueUsingComparator:
 – keysSortedByValueWithOptions:usingComparator:
like image 52
Mihir Mehta Avatar answered Oct 18 '22 05:10

Mihir Mehta