From 22664702f261f8c3b2bdc3f3144623d48074dcfa Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Mon, 1 Jul 2013 11:10:03 +0800 Subject: [PATCH] Infos are ordered alphabetically --- lib/commands/info.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/commands/info.py b/lib/commands/info.py index b5c323d..dcc514a 100644 --- a/lib/commands/info.py +++ b/lib/commands/info.py @@ -132,5 +132,6 @@ class InfoCommand(Command): # Printing info else: - for key, info in M.info().items(): - print '{0:<20}: {1}'.format(key, info) + infos = M.info() + for key in sorted(infos.keys()): + print '{0:<20}: {1}'.format(key, infos[key]) -- 2.11.0