Fixed an error where the course list was not sorted in the correct order.