From 66741301949dc061d64f445071e6e6bc65b8d5d1 Mon Sep 17 00:00:00 2001 From: ccm Date: Tue, 2 Feb 2021 08:51:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E7=BB=84=E6=8E=92=E5=BA=8F=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E5=AF=BC=E8=87=B4getRangeHtml=E9=94=99?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/global/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/global/api.js b/src/global/api.js index c2311cb..748cc79 100644 --- a/src/global/api.js +++ b/src/global/api.js @@ -1848,8 +1848,8 @@ export function getRangeHtml(options = {}) { let cpdata = ""; let colgroup = ""; - rowIndexArr = rowIndexArr.sort(); - colIndexArr = colIndexArr.sort(); + rowIndexArr = rowIndexArr.sort((a, b) => a - b); + colIndexArr = colIndexArr.sort((a, b) => a - b); for (let i = 0; i < rowIndexArr.length; i++) { let r = rowIndexArr[i];