From ffecdf21a0428aeab983b3f4c1e5d326608f2ccc Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 26 May 2023 05:51:35 +0330 Subject: [PATCH] minor change --- components/Sidebar/index.tsx | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/components/Sidebar/index.tsx b/components/Sidebar/index.tsx index b392a95..a335eaa 100644 --- a/components/Sidebar/index.tsx +++ b/components/Sidebar/index.tsx @@ -130,16 +130,18 @@ export default function ({ className }: { className?: string }) {

Tags

- {tags.map((e, i) => { - return ( - } - path={`/tags/${e.id}`} - /> - ); - })} + {tags + .sort((a, b) => a.name.localeCompare(b.name)) + .map((e, i) => { + return ( + } + path={`/tags/${e.id}`} + /> + ); + })}
);