aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMirek Kratochvil <miroslav.kratochvil@uni.lu>2023-10-16 20:56:00 +0200
committerMirek Kratochvil <miroslav.kratochvil@uni.lu>2023-10-16 20:56:00 +0200
commitde3fa4b1bc16d27c9184abaef566d1874deeb136 (patch)
tree164706a4d0a5efa3cbac73164306d6de77260329
parent0e89ba2cf9d89a9bcc25b95c5a3e76267800fafb (diff)
downloadreploy-de3fa4b1bc16d27c9184abaef566d1874deeb136.tar.gz
reploy-de3fa4b1bc16d27c9184abaef566d1874deeb136.tar.bz2
fix sorting of tags and pages by name
-rw-r--r--Tags.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tags.hs b/Tags.hs
index 9893fcb..5ad315d 100644
--- a/Tags.hs
+++ b/Tags.hs
@@ -146,7 +146,7 @@ toSortKey ident x
then Negative i
else Positive i
| Just s <- x ^? key "meta" . key "order" . _String = Stringy (T.unpack s)
- | Just n <- x ^? key "name" . _String = Stringy (T.unpack n)
+ | Just n <- x ^? key "meta" . key "name" . _String = Stringy (T.unpack n)
| otherwise = Stringy ident
-- | A generic helper for rendering metadata for tagged pages.