I have a working connection between my json object and getJSON(). I can also sort the data i get once with this code, I sorted it on the \'name\' field of the array and it works
You need to create a variable that will store the JSON and use that once the request returns.
var jsonData; $.getJSON(url,function(json){ jsonData = json; });
Now you can sort the data contained in jsonData.
jsonData