From 80599632101950ba6b1c5f863b00f4cafdb61e1f Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Sat, 20 Jun 2026 14:04:00 +0100 Subject: [PATCH] feat(frontend): order clips by newest first --- frontend/src/pages/MyClips.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/MyClips.tsx b/frontend/src/pages/MyClips.tsx index ebe3224..60e3a18 100644 --- a/frontend/src/pages/MyClips.tsx +++ b/frontend/src/pages/MyClips.tsx @@ -9,7 +9,7 @@ const MyClips = () => { useEffect(() => { getClips() - .then(setClips) + .then((data) => setClips(data.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()))) .catch((err) => setError(err)); }, []);