diff --git a/utils/index.ts b/utils/index.ts index ae353d3..7d59db4 100644 --- a/utils/index.ts +++ b/utils/index.ts @@ -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;