mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-22 07:19:53 +00:00
Sort browsing entries case-insensetive
This commit is contained in:
parent
2bcdde6341
commit
f13dfc77f8
@ -302,7 +302,7 @@ def main(args):
|
|||||||
'isdirectory': fullpath.is_dir()
|
'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)
|
indexentries.sort(key=lambda entry: entry['isdirectory'], reverse=True)
|
||||||
|
|
||||||
html = re.sub(r'\$title\$', str(directory), INDEX_TEMPLATE_HEAD)
|
html = re.sub(r'\$title\$', str(directory), INDEX_TEMPLATE_HEAD)
|
||||||
|
Loading…
Reference in New Issue
Block a user