Browse Source

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

tests
Sebastian Pipping 10 years ago committed by Sebastian Lohff
parent
commit
dece73be04
  1. 2
      servefile

2
servefile

@ -399,7 +399,7 @@ class DirListingHandler(FileBaseHandler): @@ -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