From b30b13dc3d881d734098599540aa0bb13bcf7e61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Tue, 14 May 2013 13:37:53 +0200
Subject: [PATCH] Sort commands alphabetically in "guix --help".

* guix/ui.scm (show-guix-help): Sort commands.
---
 guix/ui.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/ui.scm b/guix/ui.scm
index ca0d4249ec..6d81475812 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -420,7 +420,7 @@ Run COMMAND with ARGS.\n"))
   (format #t (_ "COMMAND must be one of the sub-commands listed below:\n"))
   (newline)
   ;; TODO: Display a synopsis of each command.
-  (format #t "~{   ~a~%~}" (commands))
+  (format #t "~{   ~a~%~}" (sort (commands) string<?))
   (show-bug-report-information))
 
 (define program-name