Fix sorting in file browser

This commit is contained in:
Magnus Hagander
2019-01-26 16:23:10 +01:00
parent 5d0b64a5ab
commit c136b8858f

View File

@ -111,7 +111,7 @@ def ftpbrowser(request, subpath):
return render_pgweb(request, 'download', 'downloads/ftpbrowser.html', {
'basepath': subpath.rstrip('/'),
'directories': directories,
'files': sorted(files),
'files': sorted(files, key=lambda f: f['name']),
'breadcrumbs': breadcrumbs,
'readme': file_readme,
'messagefile': file_message,