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).
|
||||
// The AI's rank is advisory — the computed composite score (which already incorporates
|
||||
// weighted criteria, z-score normalization, pass rate, and evaluator count) is the
|
||||
// authoritative sort key so that highest-rated projects always appear first.
|
||||
// The compositeScore incorporates weighted criteria, z-score normalization, pass rate,
|
||||
// and evaluator count — so highest-rated projects always appear first.
|
||||
rankedProjects.sort((a, b) => b.compositeScore - a.compositeScore)
|
||||
|
||||
// Re-number ranks to be contiguous (1, 2, 3, …)
|
||||
|
||||
Reference in New Issue
Block a user