From d0c39d6e96bd182852e461761a99e0029c282205 Mon Sep 17 00:00:00 2001 From: Eric Rasche Date: Fri, 2 Dec 2016 17:58:37 +0000 Subject: [PATCH] Sort environment variables in job info page --- templates/show_params.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/show_params.mako b/templates/show_params.mako index 76b5f2deb81..344c54416dd 100644 --- a/templates/show_params.mako +++ b/templates/show_params.mako @@ -174,7 +174,7 @@ %endif %if job and trans.user_is_admin(): <% job_metrics = trans.app.job_metrics %> - %for metric in job.metrics: + %for metric in sorted(job.metrics, key=lambda x:x.metric_name): <% metric_title, metric_value = job_metrics.format( metric.plugin, metric.metric_name, metric.metric_value ) %> ${ metric_title | h }${ metric_value | h } %endfor