# HG changeset patch # User Ludovic Chabant # Date 1430703638 25200 # Node ID 81d2fd526c82cbf321697ebb672757451d0869de # Parent a9929e0b8f6667cf5b491e411b18bd879fb545d6 sources: Default source lists pages in order. diff -r a9929e0b8f66 -r 81d2fd526c82 piecrust/sources/default.py --- 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)