Sort browsing entries case-insensetive

This commit is contained in:
Akbar Rahman 2021-09-01 14:08:00 +01:00
parent 2bcdde6341
commit f13dfc77f8
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

View File

@ -302,7 +302,7 @@ def main(args):
'isdirectory': fullpath.is_dir()
})
indexentries.sort(key=lambda entry: str(entry['title']))
indexentries.sort(key=lambda entry: str(entry['title']).lower())
indexentries.sort(key=lambda entry: entry['isdirectory'], reverse=True)
html = re.sub(r'\$title\$', str(directory), INDEX_TEMPLATE_HEAD)