I have an unordered NSMutableDictioanry and this dictioanry is created as in following example
{
1 = 27;
2 = 5;
3 = 13964;
4 = 2422;
5 = 45;
6 = 7;
7 = 27;
8 = 39;
}
i want to sort this dictionary based on values. And this can be done according to following article and it works perfectly fine Getting NSDictionary keys sorted by their respective values and will returns an array with keys sorted based on values
(
2,
6,
7,
1,
8,
5,
4,
3
)
So my question is there anyway that i can get a sorted dictionary directly instead of array