Mercurial > piecrust2
diff piecrust/sources/default.py @ 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 | dd25bd3ce1f9 |
children | bab91fcef741 |
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)