From 028be2669e77bc70419e6fe58f662911b2ada1bd Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 7 May 2017 15:00:31 +0200 Subject: [PATCH] sort output --- tools/count.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/count.py b/tools/count.py index d287c99..e496aed 100755 --- a/tools/count.py +++ b/tools/count.py @@ -27,7 +27,7 @@ def info(event): data[dbkey] += 1 total += 1 print('Total registered: %d' % total) - for key, value in data.items(): + for key, value in sorted(data.items()): print('%s: %s' % (key, value)) print('')