prevent colon from getting in the name and breaking windows machines

This commit is contained in:
2023-12-05 13:16:21 -07:00
parent 430c6fb089
commit 466aa747b6
2 changed files with 20 additions and 14 deletions

View File

@@ -37,8 +37,6 @@ public class CourseMarkdownLoader
throw new LoadCourseFromFileException(errorMessage);
}
LocalCourseSettings settings = await loadCourseSettings(courseDirectory);
var modules = await loadCourseModules(courseDirectory);
@@ -73,7 +71,7 @@ public class CourseMarkdownLoader
modulePaths
.Select(loadModuleFromPath)
);
return modules;
return modules.OrderBy(m => m.Name);
}
private async Task<LocalModule> loadModuleFromPath(string modulePath)