From eb03c65768f310f3d72c2bb0994f63faa6b2ee8c Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 28 Feb 2012 00:30:57 +0100 Subject: [PATCH] Sort dirlisting --- couchpotato/core/plugins/browser/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/browser/main.py b/couchpotato/core/plugins/browser/main.py index 3c3e6e8f..21d3b4b7 100644 --- a/couchpotato/core/plugins/browser/main.py +++ b/couchpotato/core/plugins/browser/main.py @@ -38,7 +38,7 @@ class FileBrowser(Plugin): if os.path.isdir(p) and ((self.is_hidden(p) and bool(int(show_hidden))) or not self.is_hidden(p)): dirs.append(p + os.path.sep) - return dirs + return sorted(dirs) def getFiles(self): pass