Inconsistent hash order fix

Hashes have no order guarantee and were causing the templates to give
inconsistent results which was causing a reload of nginx every time the
templates were regenerated. This produces consistent sorted results.