From: Frederic Massart Date: Mon, 1 Jul 2013 03:10:03 +0000 (+0800) Subject: Infos are ordered alphabetically X-Git-Tag: v0.4.1~4 X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=22664702f261f8c3b2bdc3f3144623d48074dcfa;p=mdk.git Infos are ordered alphabetically --- 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])