obi stats: result display is now sorted

This commit is contained in:
Celine Mercier
2019-07-06 16:27:51 +02:00
parent 3d9f0352ff
commit a83bf43ab9

View File

@ -244,7 +244,9 @@ def run(config):
"\t count" + \
"\t total"
print(hcat)
for c in catcount:
sorted_stats = sorted(catcount.items(), key = lambda kv:(kv[1], kv[0]), reverse=True)
for i in range(len(sorted_stats)):
c = sorted_stats[i][0]
for v in c:
print(pcat % str(v)+"\t", end="")
for m in config['stats']['minimum']: