From 06218d0e98e681c1345c5d0c14090c9eb47b4aa7 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Wed, 27 Nov 2024 12:06:45 +0100 Subject: [PATCH] Sort tags --- app/pages/portfolio/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pages/portfolio/index.vue b/app/pages/portfolio/index.vue index acf0291..8b52cc3 100644 --- a/app/pages/portfolio/index.vue +++ b/app/pages/portfolio/index.vue @@ -28,7 +28,7 @@ const tags: Array<{ label: string, icon: string } & Tag> = [ color: 'black', }, ...TAGS, -] +].sort((a, b) => a.label.localeCompare(b.label)) function updateTag(index: number) { const tag = tags[index] @@ -81,7 +81,7 @@ function updateTag(index: number) {