-MDL-38147 preload_course_contact()
-MDL-38147 better sort