tsort by height - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 9994bbc56f97af4911d5a852e26b94b8ed476382 DIR parent 0c786be46f0530d701092e1afeb744a02c3cf14e HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 11 Mar 2014 09:37:39 +0100 sort by height Diffstat: M scripts/peers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/scripts/peers b/scripts/peers t@@ -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"