Update src/pages/course/[slug]/index.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Austin Kelsay 2025-07-06 17:26:05 -05:00 committed by GitHub
parent eda202c6a2
commit 41afe6a8ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -314,7 +314,7 @@ const Course = () => {
>
{sidebarVisible && (
<CourseSidebar
lessons={uniqueLessons}
lessons={[...uniqueLessons].sort((a, b) => a.index - b.index)}
activeIndex={activeIndex}
onLessonSelect={handleLessonSelect}
completedLessons={completedLessons}