fix sorting of tags and pages by name

This commit is contained in:
Mirek Kratochvil 2023-10-16 20:56:00 +02:00
parent 0e89ba2cf9
commit de3fa4b1bc

View file

@ -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.