📅  最后修改于: 2022-03-11 15:04:04.704000             🧑  作者: Mango
const months = ['March', 'Jan', 'Feb', 'Dec'];
months.sort();
console.log(months);
// expected output: Array ["Dec", "Feb", "Jan", "March"]