summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/api/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index e00fe385..d7cd2372 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -75,7 +75,7 @@ class CommandContainer(object):
                 return None
 
     def command_generator(self, start):
-        return (cmd + ' ' for cmd in self.commands if cmd.startswith(start))
+        return sorted(cmd + ' ' for cmd in self.commands if cmd.startswith(start))
 
 
 class Command(FileManagerAware):