Sort options in my.cnf

Options in my.cnf are not sorted at this moment which introduces unnecessary
changes whenever the file is being rewritten.
This commit is contained in:
Wolodja Wentland 2015-02-17 09:44:16 +01:00
parent 98b054fcf6
commit 2dedb85d5f

View file

@ -26,7 +26,7 @@
{%- if sdata %}
[{{ sname }}]
{%- for mparam, mvalue in sdata.items()|default([]) -%}
{%- for mparam, mvalue in sdata.items()|default([])|sort -%}
{%- set indents = 40 - mparam|count %}
{% if mvalue == "noarg_present" -%}
{{ mparam }}