revert: keep compositeScore sorting (accounts for yes/no criteria)
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 19:50:15 +01:00
parent 2bccb52a16
commit 5a3f8d9837

View File

@@ -561,9 +561,8 @@ export async function executeAIRanking(
} }
// Sort ALL projects by compositeScore descending (deterministic, score-based order). // Sort ALL projects by compositeScore descending (deterministic, score-based order).
// The AI's rank is advisory — the computed composite score (which already incorporates // The compositeScore incorporates weighted criteria, z-score normalization, pass rate,
// weighted criteria, z-score normalization, pass rate, and evaluator count) is the // and evaluator count — so highest-rated projects always appear first.
// authoritative sort key so that highest-rated projects always appear first.
rankedProjects.sort((a, b) => b.compositeScore - a.compositeScore) rankedProjects.sort((a, b) => b.compositeScore - a.compositeScore)
// Re-number ranks to be contiguous (1, 2, 3, …) // Re-number ranks to be contiguous (1, 2, 3, …)