Mercurial > piecrust2
changeset 988:f83ae0a5d793
showrecords: Sort records by name.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 03 Nov 2017 23:14:56 -0700 |
parents | d57fff79acc1 |
children | 8adc27285d93 |
files | piecrust/commands/builtin/baking.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/commands/builtin/baking.py Tue Oct 31 09:33:36 2017 -0700 +++ b/piecrust/commands/builtin/baking.py Fri Nov 03 23:14:56 2017 -0700 @@ -218,7 +218,7 @@ logger.info("") if not ctx.args.show_stats and not ctx.args.show_manifest: - for rec in records.records: + for rec in sorted(records.records, key=lambda r: r.name): if ctx.args.fails and rec.success: logger.debug( "Ignoring record '%s' because it was successful, "