ENGLISH·COURSE API
    Preparing search index...
    • Orders every catalog course for Available courses' lobby: the learner's courses first, then every course they have not joined, in catalog order.

      Parameters

      • enrolled: readonly CourseCardModel[]

        The learner's courses, the one to lead with first

      • courses: readonly CourseForView[]

        Every catalog course's view

      Returns LobbyEntry[]

      One entry per catalog course

      enrolled is taken in the order given — useCourseShelf already puts the course watched most recently first — so the lobby and My learning agree on which course leads.

      const lobby = courseLobby([shelf.featured, ...shelf.otherEnrolled], courses);