reverse sort order for tags

This commit is contained in:
slonkazoid 2024-12-16 21:34:29 +03:00
parent a4b571fc3d
commit 892fb67976
Signed by: slonk
SSH key fingerprint: SHA256:tbZfJX4IOvZ0LGWOWu5Ijo8jfMPi78TU7x1VoEeCIjM

View file

@ -96,7 +96,7 @@ fn collect_tags(posts: &Vec<PostMetadata>) -> IndexMap<Arc<str>, u64> {
}
tags.sort_unstable_by(|k1, _v1, k2, _v2| k1.cmp(k2));
tags.sort_by(|_k1, v1, _k2, v2| v1.cmp(v2));
tags.sort_by(|_k1, v1, _k2, v2| v2.cmp(v1));
tags
}