var your_json; $.each(your_json, function(index,obj){ $.each(obj.bids, function(index,bids){ bids.sort(function(bids1,bids2){return bids2.v > bids1.v}); }); });