js sort 数字排序

参考:https://blog.csdn.net/weixin_43742708/article/details/106367046

      arr = arr.sort((x, y) => {
        return x - y;
      });

 

posted @ 2022-10-08 16:08  jqynr  阅读(28)  评论(0)    收藏  举报