Sort the IP addresses to configure haproxy

As the order of IP addresses get from service_discover_consul keep on changing,
unnecessary haproxy reconfiguration is happening and thus haproxy restart.

This patch adds sort while getting the IP Addresses so no more reconfiguration.