sort by height
authorThomasV <thomasv@gitorious>
Tue, 11 Mar 2014 08:37:39 +0000 (09:37 +0100)
committerThomasV <thomasv@gitorious>
Tue, 11 Mar 2014 08:37:39 +0000 (09:37 +0100)
scripts/peers

index a67be7c..efc1669 100755 (executable)
@@ -71,7 +71,7 @@ while reached_servers:
 
 errors = analyze(results).keys()
 
-for n,v in results.items():
+for n,v in sorted(results.items(), key=lambda x:x[1]['block_height']):
     print "%40s"%n, v['block_height'], v['utxo_root'], "error" if n in errors else "ok"