From: Brian Warner Date: Sat, 20 Jan 2007 20:02:26 +0000 (-0700) Subject: filetable: oops, os.listdir() does not guarantee sorted results X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~345 X-Git-Url: https://git.rkrishnan.org/simplejson/-?a=commitdiff_plain;h=48216ce272676edfa15ed723f03479456bbd2114;p=tahoe-lafs%2Ftahoe-lafs.git filetable: oops, os.listdir() does not guarantee sorted results --- diff --git a/src/allmydata/filetable.py b/src/allmydata/filetable.py index f0f2b492..53263bba 100644 --- a/src/allmydata/filetable.py +++ b/src/allmydata/filetable.py @@ -46,7 +46,7 @@ class MutableDirectoryNode(Referenceable): f.close() results.append( (name, data) ) # anything else is ignored - return results + return sorted(results) remote_list = list def get(self, name):