mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
Fix sorting in file browser
This commit is contained in:
@ -111,7 +111,7 @@ def ftpbrowser(request, subpath):
|
|||||||
return render_pgweb(request, 'download', 'downloads/ftpbrowser.html', {
|
return render_pgweb(request, 'download', 'downloads/ftpbrowser.html', {
|
||||||
'basepath': subpath.rstrip('/'),
|
'basepath': subpath.rstrip('/'),
|
||||||
'directories': directories,
|
'directories': directories,
|
||||||
'files': sorted(files),
|
'files': sorted(files, key=lambda f: f['name']),
|
||||||
'breadcrumbs': breadcrumbs,
|
'breadcrumbs': breadcrumbs,
|
||||||
'readme': file_readme,
|
'readme': file_readme,
|
||||||
'messagefile': file_message,
|
'messagefile': file_message,
|
||||||
|
Reference in New Issue
Block a user