I am using a REST based web service to get data. No matter what the structure of the JSON document, the NSDictionary gets populated the same way. I want the sorting preserved as
You shouldn't be using JSON dictionary to store things whose order matters. As http://json.org/ says
An object is an unordered set of name/value pairs.