Directory index is now sorted alphabetical

This commit is contained in:
Sebastian Lohff 2012-06-25 00:20:44 +02:00
parent b1891da417
commit 709c2ad9da
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ class DirListingHandler(FileBaseHandler):
</body>
</html>""" % {'version': __version__}
content = []
for item in [".."] + os.listdir(path):
for item in [".."] + sorted(os.listdir(path)):
# create path to item
itemPath = os.path.join(path, item)