From 8e5fcb86dccfc23093043de738f009010c6b021d Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Fri, 24 Apr 2026 10:01:25 +0900 Subject: [PATCH] =?UTF-8?q?[#978]=20Remove=20active-first=20sort=20from=20?= =?UTF-8?q?MCap=20=E2=80=94=20only=20apply=20to=20Trending?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/ranking.ts | 9 ++------- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/ranking.ts b/lib/ranking.ts index 8657d85f..1f4cb72e 100644 --- a/lib/ranking.ts +++ b/lib/ranking.ts @@ -331,13 +331,8 @@ export async function getMcapStorylines( return { ...sl, mcap }; }); - // Active-first, then by MCap descending - withMcap.sort((a, b) => { - const aActive = getStoryStatus(a) === "active" ? 0 : 1; - const bActive = getStoryStatus(b) === "active" ? 0 : 1; - if (aActive !== bActive) return aActive - bActive; - return b.mcap - a.mcap; - }); + // Pure MCap descending — no active-first bias (per #978) + withMcap.sort((a, b) => b.mcap - a.mcap); return withMcap.slice(offset, offset + limit); } diff --git a/package-lock.json b/package-lock.json index 2f2af8fa..2b8aee5f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "plotlink", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "plotlink", - "version": "1.0.1", + "version": "1.0.2", "workspaces": [ "packages/*" ], diff --git a/package.json b/package.json index 01ee711e..37bcfcce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plotlink", - "version": "1.0.1", + "version": "1.0.2", "private": true, "workspaces": [ "packages/*"