From accfe346047b68659475cb61ea91232e66fc6f43 Mon Sep 17 00:00:00 2001 From: wisonic Date: Mon, 29 Jul 2024 11:06:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E8=A1=A8=E5=A4=B4=E6=8E=92=E5=BA=8F=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AD=97=E6=AE=B5=E6=8E=92=E5=BA=8F=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/editor/common/TableTooltip.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/common/TableTooltip.vue b/core/core-frontend/src/views/chart/components/editor/common/TableTooltip.vue index 0bf1d5fc43..ad11865fdb 100644 --- a/core/core-frontend/src/views/chart/components/editor/common/TableTooltip.vue +++ b/core/core-frontend/src/views/chart/components/editor/common/TableTooltip.vue @@ -37,12 +37,12 @@ const sortFunc = (sortParams: SortFuncParam) => { if (typeof aValue === 'number') { return aValue - bValue } - return aValue < bValue ? 1 : -1 + return aValue < bValue ? -1 : 1 } if (typeof aValue === 'number') { return bValue - aValue } - return aValue > bValue ? 1 : -1 + return aValue > bValue ? -1 : 1 }) } const sort = (type?) => {