Sort section keys in template

When passing multiple sections ensure they are sorted so that the
file doesn't change every execution simply because Puppet rearranged
the elements in the array passed