From 1d2319e97c9adb519480e8bd045368c8207a9d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateus=20Felipe=20Gon=C3=A7alves?= Date: Tue, 13 Jun 2023 17:43:15 -0300 Subject: [PATCH] feat(ui): change category display on categories page --- src/app/(blog)/categories/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/(blog)/categories/page.tsx b/src/app/(blog)/categories/page.tsx index cafe061b..a097fb5d 100644 --- a/src/app/(blog)/categories/page.tsx +++ b/src/app/(blog)/categories/page.tsx @@ -16,9 +16,9 @@ export default function Page() { return (

Categories

-
+
{categories - .sort((a, b) => a.category.localeCompare(b.category)) + .sort((a, b) => b.numberOfPosts - a.numberOfPosts) .map((categoryData, index) => (