hey out there, i am failing to render a json response in ruby on rails from a hash datastructure of country-names with their country-codes: { "AF"=>"Afghanistan", "AL"=>"Albania", "DZ"=>"Algeria", ... }, so that the json response has its entries alphabetically ordered like this:
{ "AF":"Afghanistan", "AL":"Albania", "DZ"=>"Algeria" ... }
the problem, for my understanding, is, that a ruby hash has in itself no notion of order. so the response is totally random.
thanks for any help!
martin