I have the following json structure.
json = {
        "Canada": ["Toronto"],
        "Argentina": ["Buenos Aires"],
        "Brazil": ["Rio de Janeiro"],
        }
I'm looking for a way to sort alphabetically by the children. It would be like this:
json = {
        "Argentina": ["Buenos Aires"],
        "Brazil": ["Rio de Janeiro"],
        "Canada": ["Toronto"]
        }
Can someone give me a hand? I'm using jQuery.
 
    