var json=[{ Name:'张三', Addr:'重庆', Age:'20' },{ Name:'张三3', Addr:'重庆2', Age:'25' },{ Name:'张三2', Addr:'重庆1', Age:'22' }]; function sortJson(a,b){ return b.Age-a.Age; } function sortByKey(array, key) { return array.sort(function(a, b) { var x = a[key];…