Sort location_custom_cfg hash to prevent random ordering

This is a fix for a bug in my previous pull request... sorry about that!

The location_custom_cfg hash was not being sorted and so the nginx config was being refreshed each time to due the random ordering of the hash's entries.