From c90ffe78cc2c5ad292cb2c0495affde635af4002 Mon Sep 17 00:00:00 2001 From: hmo Date: Wed, 29 Jul 2026 15:01:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=97=E6=8E=92=E5=BA=8F=E8=A2=AB?= =?UTF-8?q?=E6=B8=AF=E8=82=A1=E6=B2=89=E5=BA=95=E9=BB=98=E8=AE=A4=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E8=A6=86=E7=9B=96=E2=80=94=E2=80=94=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E4=BB=85=E5=9C=A8=E6=9C=AA=E9=80=89=E5=88=97?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E6=97=B6=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/static/index.html b/static/index.html index ca735faf..b6361231 100644 --- a/static/index.html +++ b/static/index.html @@ -2008,13 +2008,15 @@ function renderStrategyTable(strategies) { if (window._sortKey) { strategies = sortStrategies(strategies, window._sortKey, window._sortDir); } - // 非港股版本在前,港股分身沉底且同版本内非港在前(2026-07-29 老爸:v7.1身份不被港股分身混淆) - strategies.sort((a, b) => { - const am = (a.market || 'all') === 'hk' ? 1 : 0; - const bm = (b.market || 'all') === 'hk' ? 1 : 0; - if (am !== bm) return am - bm; - return (a.version || '').localeCompare(b.version || ''); - }); + // 默认排序(未点列排序时):非港股在前,港股分身沉底;点列排序后以用户选择为准 + if (!window._sortKey) { + strategies.sort((a, b) => { + const am = (a.market || 'all') === 'hk' ? 1 : 0; + const bm = (b.market || 'all') === 'hk' ? 1 : 0; + if (am !== bm) return am - bm; + return (a.version || '').localeCompare(b.version || ''); + }); + } // 找每列最优值用于高亮 const best = { win_rate: -999, sharpe_ratio: -999, profit_factor: -999, avg_profit_pct: -999, total_return_pct: -999, cagr_pct: -999, portfolio_max_dd_pct: 999 };