Updated course sorting.