Sort addresses to get deterministic ordering

Otherwise, when you use these functions to get a list for insertion into firewall rules,
the order changing every Puppet run results in the firewall reloading on every puppet
run.  Not cool.