Comment trier les objets JSON

json.sort(function(a, b){
    return a.id - b.id;
});
Wrong Willet