MDL-41517 Do not call fix_course_sortorder unnecessarily