Permalink
Browse files

Make sure entries are sorted in alphabetical order

  • Loading branch information...
OiNutter committed Feb 8, 2013
1 parent 3313df9 commit 7b335882fc9c315a610ab42f0549db8b3b5869d1
Showing with 1 addition and 1 deletion.
  1. +1 −1 crawl/index.py
View
@@ -26,7 +26,7 @@ def entries(self,path):
entries = []
if os.path.exists(path) and os.path.isdir(path):
- entries = os.listdir(path)
+ entries = sorted(os.listdir(path))
self.entries_cache[path] = [filename for filename in entries if not re.search(r"""^\.|~$|^\#.*\#$""",filename)]

0 comments on commit 7b33588

Please sign in to comment.