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 ++-- public/tags/index.html | 56 ++++++++++++++++++++++---------------------- 2 files changed, 30 insertions(+), 30 deletions(-) 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( diff --git a/public/tags/index.html b/public/tags/index.html index 50ad5fd..da88913 100644 --- a/public/tags/index.html +++ b/public/tags/index.html @@ -37,86 +37,86 @@

タグ一覧

-
-

Vim

+
+

カンファレンス

-
-

Rust

+
+

C++

-
-

Ruby 3

+
+

C++ 17

-
-

Ruby

+
+

備忘録

-
-

Python 3

+
+

PHP

-
-

Python

+
+

PHP カンファレンス

-
-

PHP 勉強会@東京

+
+

PHPerKaigi

-
-

PHPerKaigi

+
+

PHP 勉強会@東京

-
-

PHP カンファレンス

+
+

Python

-
-

PHP

+
+

Python 3

-
-

備忘録

+
+

Ruby

-
-

C++ 17

+
+

Ruby 3

-
-

C++

+
+

Rust

-
-

カンファレンス

+
+

Vim

-- cgit v1.2.3-70-g09d2