From 7eb3faa58d49de9b737b683295745fcbbbb451a5 Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Tue, 8 Oct 2024 13:44:48 +0800 Subject: [PATCH] test --- utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;