Merge pull request #2 from snow-jallen/main

order courses by name
This commit is contained in:
2024-01-05 13:25:54 -07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -39,6 +39,7 @@
} }
<PageTitle>@CourseName</PageTitle>
<div style="height: 100vh;"> <div style="height: 100vh;">

View File

@@ -25,7 +25,7 @@ public class CourseMarkdownLoader
}) })
.Select(async d => await LoadCourseByPath(d)) .Select(async d => await LoadCourseByPath(d))
); );
return courses; return courses.OrderBy(c=>c.Settings.Name);
} }
public async Task<LocalCourse> LoadCourseByPath(string courseDirectory) public async Task<LocalCourse> LoadCourseByPath(string courseDirectory)