revert: keep compositeScore sorting (accounts for yes/no criteria)
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
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:
@@ -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, …)
|
||||||
|
|||||||
Reference in New Issue
Block a user