Mercurial > piecrust2
changeset 366:81d2fd526c82
sources: Default source lists pages in order.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 03 May 2015 18:40:38 -0700 |
parents | a9929e0b8f66 |
children | 734f2abf361c |
files | piecrust/sources/default.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/sources/default.py Sun May 03 18:40:05 2015 -0700 +++ b/piecrust/sources/default.py Sun May 03 18:40:38 2015 -0700 @@ -44,7 +44,7 @@ for dirpath, dirnames, filenames in os.walk(self.fs_endpoint_path): rel_dirpath = os.path.relpath(dirpath, self.fs_endpoint_path) dirnames[:] = list(filter(filter_page_dirname, dirnames)) - for f in filter(filter_page_filename, filenames): + for f in sorted(filter(filter_page_filename, filenames)): fac_path = f if rel_dirpath != '.': fac_path = os.path.join(rel_dirpath, f)