📜  在 javascript 代码示例中排序

📅  最后修改于: 2022-03-11 15:03:59.100000             🧑  作者: Mango

代码示例6
const numbers = [4, 7, 1, 3, 6, 9, 2, 5];
const numbersSort = numbers.sort();
console.log(numbersSort);
//Output:[1, 2, 3, 4, 5, 6, 7, 9]