add sort to LogFormats to ensure consistency between runs

you can contract those two lines of `if` / `do` into:
```erb
<% Hash(@log_formats).sort.each do |nickname, format| -%>
```