X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ee99f155d35803cc802ce2a2200fb98cee015772..df0bfd836ecf9381deb8cae7ee19a2f54ebd7578:/apps/fileupload/views.py 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, }