diff --git a/lib/ranking.ts b/lib/ranking.ts index 8657d85..1f4cb72 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 2f2af8f..2b8aee5 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 01ee711..37bcfcc 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/*"