| 1098 | }) |
| 1099 | |
| 1100 | const sortCourses = courses => _.sortBy(courses, function (course) { |
| 1101 | // ._id can be from classroom.courses, otherwise it's probably .id |
| 1102 | let index = orderedCourseIDs.indexOf(course.id != null ? course.id : course._id) |
| 1103 | if (index === -1) { index = 9001 } |
| 1104 | return index |
| 1105 | }) |
| 1106 | |
| 1107 | const sortOtherCourses = courses => _.sortBy(courses, function (course) { |
| 1108 | let index = otherOrderedCourseIDs.indexOf(course.id != null ? course.id : course._id) |
nothing calls this directly
no outgoing calls
no test coverage detected