arr.sort((x, y) => { return x>y?1:-1 });
这样更简单
arr.sort((x, y) => { return x-y });
Sign in to make a reply
一只小年糕喔