📜  按时间戳排序 javascript 代码示例

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

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