I have a array NSMutableArray with Values say
10, 2, 13, 4.
Also there is NSMutableDictionary with values say
(10, a), (20, b), (13, c), (2, d), (33, e)
I want to sort values in NSMutableDictionary in a way that result of dict should be (10, a), (2, d), (13, c)
I wrote for you function. Hope, it will help you: