location.sort(function(a,b) { // assuming distance is always a valid integer return parseInt(a.distance,10) - parseInt(b.distance,10); });
確定! 回上一頁