Make sorting case-insensitive so that "aaa" and "AAA" end up next to each other

tests
Sebastian Pipping 12 years ago committed by Sebastian Lohff
parent 0df9c56214
commit dece73be04

@ -399,7 +399,7 @@ class DirListingHandler(FileBaseHandler):
dir_items = list()
file_items = list()
for item in [".."] + sorted(os.listdir(path)):
for item in [".."] + sorted(os.listdir(path), key=lambda x:x.lower()):
# create path to item
itemPath = os.path.join(path, item)

Loading…
Cancel
Save