]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
web/check_results: sort share identifiers in the sharemap display
authorBrian Warner <warner@lothar.com>
Fri, 20 Feb 2009 19:29:22 +0000 (12:29 -0700)
committerBrian Warner <warner@lothar.com>
Fri, 20 Feb 2009 19:29:22 +0000 (12:29 -0700)
src/allmydata/web/check_results.py

index eeb30709d52f4e5c2021d2a1464a576be3b73e5c..ba639bfde0aa4dedd7458bc9d3e33b397453db93 100644 (file)
@@ -142,7 +142,7 @@ class ResultsBase:
             nickname = c.get_nickname_for_peerid(serverid)
             shareids = servers.get(serverid, [])
             shareids.reverse()
-            shareids_s = [ T.tt[shareid, " "] for shareid in shareids ]
+            shareids_s = [ T.tt[shareid, " "] for shareid in sorted(shareids) ]
             servermap.append(T.tr[T.td[T.tt[base32.b2a(serverid)],
                                        " (", nickname, ")"],
                                   T.td[shareids_s] ])