Symptom
Top tracks and royalty results are sorted with the lowest values first instead of highest first. The least popular track appears at the top of the "Top Tracks" list, and the lowest earner appears first in the royalty results.
What you know
Both the track catalog and the royalty results components sort their data using JavaScript's Array.sort() with a comparator function. The results are in the opposite order from what is expected.
Hints
TypeScript
TypeScript ready
Test Output
▶
Click "Run Tests" to execute your code