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.
This commit is contained in:
Sunil Mohan Adapa 2016-06-03 18:09:41 +05:30 committed by James Valleroy
parent 4c30d5e8a5
commit 6d08468933
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -47,7 +47,6 @@
</thead>
<tbody>
{% for service in services %}
<tr>
<td><strong>{{ service.name }}</strong></td>
<td>
@ -62,6 +61,7 @@
</tr>
{% for port in service.ports %}
{% for service in services|dictsort:"name" %}
<tr>
<td class='cell-indented'><em>{{ port }}</em></td>
<td>