From: Cédric Aguerre Date: Fri, 3 Feb 2017 14:44:55 +0000 (+0100) Subject: sort software info by product name X-Git-Tag: V8_3_0a2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7ccdfae33f1ba194a52f2fda0444fb49003b68d0;p=modules%2Fkernel.git sort software info by product name --- 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