I am utilizing a NSMutableDictionary, and it seams that it is automatically sorting the key’s based on its first alphabet? Is there any way to disable this automatically sorting? I tried changing the position of these keys and still having the same issue when I call [NSMutableDictionary description] method.
Thanks.
It only sorts the keys when outputting the description string, it doesn’t change the memory layout which is based on a hash table. If you enumerate through it, it won’t be sorted as it’s meant to give you fast access. See this SO post.