feat: sort agents by match percentage in descending order
This commit is contained in:
@@ -595,6 +595,9 @@ export class AgentsService {
|
||||
return { ...agent, matchPercentage };
|
||||
});
|
||||
|
||||
// Sort by match percentage (highest first)
|
||||
agentsWithScore.sort((a, b) => b.matchPercentage - a.matchPercentage);
|
||||
|
||||
return {
|
||||
data: agentsWithScore,
|
||||
meta: {
|
||||
|
||||
Reference in New Issue
Block a user