From 48216ce272676edfa15ed723f03479456bbd2114 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sat, 20 Jan 2007 13:02:26 -0700 Subject: [PATCH] filetable: oops, os.listdir() does not guarantee sorted results --- src/allmydata/filetable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.45.2