📌  相关文章
📜  javascript 按升序排序数组 - Javascript 代码示例

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

代码示例2
const months = ['March', 'Jan', 'Feb', 'Dec'];
months.sort();
console.log(months);
// expected output: Array ["Dec", "Feb", "Jan", "March"]