From 9b6b13993c2e58d82d88b90c2cccbf10834395b1 Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Sat, 5 Aug 2023 23:07:39 +0200 Subject: [PATCH] Output the tag list sorted alphabetically. --- chatmastermind/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatmastermind/utils.py b/chatmastermind/utils.py index 7bac123..bc1dcd2 100644 --- a/chatmastermind/utils.py +++ b/chatmastermind/utils.py @@ -79,5 +79,5 @@ def display_tags_frequency(tags: List[str], dump=False) -> None: if dump: pp(tags) return - for tag in set(tags): + for tag in sorted(set(tags)): print(f"- {tag}: {tags.count(tag)}")