diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-03-19 00:52:16 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-03-19 01:12:08 +0900 |
| commit | 0021721514e95ae0ba4e64d9a57780f0c9ee65fa (patch) | |
| tree | 1c14c54dc98f77c4132bafc605641d5ac3810f36 /nuldoc-src/pages | |
| parent | 8aee2418d9ea730ec0ed5770be6b1918a072e17c (diff) | |
| download | blog.nsfisis.dev-0021721514e95ae0ba4e64d9a57780f0c9ee65fa.tar.gz blog.nsfisis.dev-0021721514e95ae0ba4e64d9a57780f0c9ee65fa.tar.zst blog.nsfisis.dev-0021721514e95ae0ba4e64d9a57780f0c9ee65fa.zip | |
fix(nuldoc): sort order of tag list page
Diffstat (limited to 'nuldoc-src/pages')
| -rw-r--r-- | nuldoc-src/pages/tag_list.ts | 4 |
1 files changed, 2 insertions, 2 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( |
