SOURCE

// 数字数组排序
const array = [40,100,1,5,35,10]
console.log(array.sort((a,b) => a-b))
console 命令行工具 X clear

                    
>
console