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 };