Skip to content

Commit

Permalink
When dir listing is used projects are sorted alphabetically.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfis committed Nov 2, 2010
1 parent c43ce95 commit ab9b9e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_list.py
Expand Up @@ -143,7 +143,7 @@ def __init__(self, req, dir, basepath = '/'):
def _projects(self, req, parent_dir, basepath): def _projects(self, req, parent_dir, basepath):
projects = [] projects = []


dirs = os.listdir(parent_dir) dirs = sorted(os.listdir(parent_dir), key=str.lower)
for dir in dirs: for dir in dirs:
path = os.path.join(parent_dir, dir) path = os.path.join(parent_dir, dir)
config = os.path.join(path, 'pitweb.py') config = os.path.join(path, 'pitweb.py')
Expand Down

0 comments on commit ab9b9e9

Please sign in to comment.