📅  最后修改于: 2022-03-11 15:04:18.059000             🧑  作者: Mango
let fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.sort()
console.log(fruits)
// [ 'Apple', 'Banana', 'Mango', 'Orange' ]