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