This commit is contained in:
Philip Cheung 2024-10-08 13:44:48 +08:00
parent bd0f852f8a
commit 7eb3faa58d
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ export async function fetchCourses() {
}));
const sortedCoursesArray = coursesArray.sort((a, b) =>
new Date(a.created_at).getTime() - new Date(b.created_at).getTime()
new Date(a.created_at).getTime() - new Date(a.created_at).getTime()
);
return sortedCoursesArray;