X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ee99f155d35803cc802ce2a2200fb98cee015772..7d143b2779bf6f74135e13895312ae73cd9436f5:/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, }