codice:
arr=new Array()
arr.push({id:1,nome:"Fra"})
arr.push({id:100,nome:"Neg"})
arr.push({id:20,nome:"Enr"})
arr.sort(function(a, b){return a.id > b.id});