diff --git a/nonebot_plugin_memes/matchers/statistics.py b/nonebot_plugin_memes/matchers/statistics.py index 2725e09..9961d77 100644 --- a/nonebot_plugin_memes/matchers/statistics.py +++ b/nonebot_plugin_memes/matchers/statistics.py @@ -205,6 +205,7 @@ def fmt_time(time: datetime) -> str: key_counts: dict[str, int] = {} for key in meme_keys: key_counts[key] = key_counts.get(key, 0) + 1 + key_counts = dict(sorted(key_counts.items(), key=lambda item: item[1])) if meme: title = ( diff --git a/pyproject.toml b/pyproject.toml index 2a0ea0c..2865e6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nonebot_plugin_memes" -version = "0.7.4" +version = "0.7.5" description = "Nonebot2 plugin for making memes" authors = ["meetwq "] license = "MIT"