From 59be8bdd62bbbb9b57a209b005441206eb02f7cd Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 5 Dec 2012 19:39:50 +0100 Subject: Sort items in /help --- src/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core.py') diff --git a/src/core.py b/src/core.py index 1a1ff433..4e17d747 100644 --- a/src/core.py +++ b/src/core.py @@ -1315,12 +1315,14 @@ class Core(object): /help """ args = arg.split() + acc = [] if not args: msg = _('Available commands are: ') for command in self.commands: - msg += "%s " % command + acc.append(command) for command in self.current_tab().commands: - msg += "%s " % command + acc.append(command) + msg += ' '.join(sorted(acc)) msg += _("\nType /help to know what each command does") if args: if args[0] in self.commands: -- cgit v1.2.3