From 35a6d9ba879f9276286d994b443e024541456d0e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 26 Apr 2017 10:44:22 -0400 Subject: [PATCH] gcode: Sort the order of commands in HELP Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/gcode.py b/klippy/gcode.py index dbd0dbcb..ad9bd482 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -428,7 +428,7 @@ class GCodeParser: if not self.is_printer_ready: cmdhelp.append("Printer is not ready - not all commands available.") cmdhelp.append("Available extended commands:") - for cmd in self.gcode_handlers: + for cmd in sorted(self.gcode_handlers): desc = getattr(self, 'cmd_'+cmd+'_help', None) if desc is not None: cmdhelp.append("%-10s: %s" % (cmd, desc))