$.getJSON("URl",function(data){data.sort(function(a,b){return a.demoname-b.demoname});for(i=0;i<data.length;i++){ alert(data[i].demoname)}})