Fixed a sorting issue with courses