Commit a83bf43a by Celine Mercier

obi stats: result display is now sorted

parent 3d9f0352
......@@ -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']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment