Sort course and enrollment pairs on dashboard

ECOM-418
Also, the average number of enrollments is very low, so it shouldn't be expensive to do that sorting in Python.