Symptom
After running recommendations, the highest-scoring courses (best matches) appear at the bottom of the results list instead of the top.
Expected: The best recommendations (highest scores) should appear first.
Context
The recommend route handler scores each course, then sorts the results before returning them to the frontend. The sort comparator determines the ordering direction.
Hints
TypeScript
TypeScript ready
Test Output
▶
Click "Run Tests" to execute your code