MCPcopy Create free account
hub / github.com/codecombat/codecombat / sortOtherCourses

Function sortOtherCourses

app/core/utils.js:1107–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105})
1106
1107const sortOtherCourses = courses => _.sortBy(courses, function (course) {
1108 let index = otherOrderedCourseIDs.indexOf(course.id != null ? course.id : course._id)
1109 if (index === -1) { index = 9001 }
1110 return index
1111})
1112
1113const sortCoursesByAcronyms = function (courses) {
1114 const orderedCourseAcronyms = _.sortBy(courseAcronyms)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected