SOURCE

const list = [3, 5, 2, 1, 1, 7,5];

console.log(list.sort((a, b) => a - b));
console 命令行工具 X clear

                    
>
console