From 0021721514e95ae0ba4e64d9a57780f0c9ee65fa Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 19 Mar 2023 00:52:16 +0900 Subject: fix(nuldoc): sort order of tag list page --- nuldoc-src/pages/tag_list.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nuldoc-src') diff --git a/nuldoc-src/pages/tag_list.ts b/nuldoc-src/pages/tag_list.ts index bb481f8..2b58ff3 100644 --- a/nuldoc-src/pages/tag_list.ts +++ b/nuldoc-src/pages/tag_list.ts @@ -33,8 +33,8 @@ export async function generateTagListPage( ...Array.from(tags).sort((a, b) => { const ta = a.tagSlug; const tb = b.tagSlug; - if (ta > tb) return -1; - if (ta < tb) return 1; + if (ta < tb) return -1; + if (ta > tb) return 1; return 0; }).map((tag) => el( -- cgit v1.2.3-70-g09d2