From 6d084689332d99c5f478a8c604a4571fab626421 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 3 Jun 2016 18:09:41 +0530 Subject: [PATCH] firewall: List firewall services alphabetically When firewall services are list, the order changes for every run of plinth and is not predictable making it hard to lookup a service. List services alphabetically to fix the problem. --- plinth/modules/firewall/templates/firewall.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/firewall/templates/firewall.html b/plinth/modules/firewall/templates/firewall.html index e8178fe7a..325980f83 100644 --- a/plinth/modules/firewall/templates/firewall.html +++ b/plinth/modules/firewall/templates/firewall.html @@ -47,7 +47,6 @@ - {% for service in services %} {{ service.name }} @@ -62,6 +61,7 @@ {% for port in service.ports %} + {% for service in services|dictsort:"name" %} {{ port }}