📅  最后修改于: 2022-03-11 15:03:08.492000             🧑  作者: Mango
var numArray = [140000, 32, 12, 63323, 104, 99];
numArray.sort(function(a, b) {
return b - a;
});
// Array(6) [ 140000, 63323, 104, 99, 32, 12 ]