From b3ea7b31706eea59d726521e45f91fc5236a339e Mon Sep 17 00:00:00 2001 From: Jon Morton Date: Mon, 8 Jul 2013 20:10:11 -0500 Subject: [PATCH] Sort location_custom-cfg hash to prevent random ordering --- templates/vhost/vhost_location_empty.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/vhost/vhost_location_empty.erb b/templates/vhost/vhost_location_empty.erb index 4a0011e..5783cf2 100644 --- a/templates/vhost/vhost_location_empty.erb +++ b/templates/vhost/vhost_location_empty.erb @@ -1,5 +1,5 @@ location <%= location %> { -<% location_custom_cfg.each do |key,value| -%> +<% location_custom_cfg.sort_by {|k,v| k}.each do |key,value| -%> <%= key %> <%= value %>; <% end -%> }