iOS Development: NSDictionary - allKeys

13 Jun 2014

Hello programmer,

Learnt this random fact today that I didn’t know of, When you do -

image

the allKeys is usually sorted in alphabetical order, (standard NSString sorting logic applies,) and on string length of the key. 

And hence the bug in my code, which worked on my test-case and then failed now after we went LIVE with real user data. sigh