From b658810bd0ea529e2412fdc33e5848278863d1b7 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 11 Mar 2013 16:11:09 +0100 Subject: [PATCH] Sort files in fileupload. --- apps/fileupload/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/fileupload/views.py b/apps/fileupload/views.py index 8863465c..d08bfd32 100644 --- a/apps/fileupload/views.py +++ b/apps/fileupload/views.py @@ -99,7 +99,7 @@ class UploadView(FormView): files = [] path = self.get_safe_path() if os.path.isdir(path): - for f in os.listdir(path): + for f in sorted(os.listdir(path)): file_info = { "name": f, } -- 2.20.1