sort by height
[electrum-nvc.git] / 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"