From bd5ccb62ba53935998452448d9453dada161230d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Wed, 22 Mar 2017 22:13:33 +0100 Subject: [PATCH] Fixed wrong order of change recommendations in summary box in PDF. --- openslides/motions/static/js/motions/pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslides/motions/static/js/motions/pdf.js b/openslides/motions/static/js/motions/pdf.js index f541f94c1..806b38b20 100644 --- a/openslides/motions/static/js/motions/pdf.js +++ b/openslides/motions/static/js/motions/pdf.js @@ -179,7 +179,7 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf']) if ($scope.viewChangeRecommendations.mode == "diff") { var columnLineNumbers = []; var columnChangeType = []; - angular.forEach($scope.change_recommendations, function(change) { + angular.forEach(_.orderBy($scope.change_recommendations, ['line_from']), function(change) { // line numbers column var line; if (change.line_from >= change.line_to - 1) {