diff --git a/cloudbot/bot.py b/cloudbot/bot.py index 538336c82..2b3e05f3a 100644 --- a/cloudbot/bot.py +++ b/cloudbot/bot.py @@ -314,7 +314,7 @@ def add_hook(hook, _event, _run_before=False): add_hook(command_hook, command_event) else: event.notice("Possible matches: {}".format( - formatting.get_text_list([command for command, plugin in potential_matches]))) + formatting.get_text_list(sorted([command for command, plugin in potential_matches])))) if event.type in (EventType.message, EventType.action): # Regex hooks diff --git a/plugins/core/help.py b/plugins/core/help.py index d711d0c5b..4c669ef65 100644 --- a/plugins/core/help.py +++ b/plugins/core/help.py @@ -92,7 +92,7 @@ def cmdinfo(text, bot, notice): cmd_hook = potentials[0][1] else: notice("Possible matches: {}".format( - formatting.get_text_list([command for command, plugin in potentials]))) + formatting.get_text_list(sorted([command for command, plugin in potentials])))) return else: cmd_hook = None