From 7ccdfae33f1ba194a52f2fda0444fb49003b68d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Fri, 3 Feb 2017 15:44:55 +0100 Subject: [PATCH] sort software info by product name --- bin/salomeContext.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/salomeContext.py b/bin/salomeContext.py index fdbec33d5..79cc1ce10 100644 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -440,7 +440,9 @@ class SalomeContext: if versions.has_key(soft.upper()): print soft.upper().rjust(max_len), versions[soft.upper()] else: - for name, version in versions.items(): + import collections + od = collections.OrderedDict(sorted(versions.items())) + for name, version in od.iteritems(): print name.rjust(max_len), versions[name] pass -- 2.39.2