network: SortAddresses() without preferIPv6 arg; fix doc comments and simplify more code
network: SortAddresses() without preferIPv6 arg; fix doc comments and simplify more code

alesstimec/juju,marcmolla/juju,macgreagoir/juju,mikemccracken/juju,anastasiamac/juju,gabriel-samfira/juju,kat-co/juju,mjs/juju,mjs/juju,frankban/juju,mjs/juju,dimitern/juju,axw/juju,howbazaar/juju,AdamIsrael/juju,anastasiamac/juju,kat-co/juju,reedobrien/juju,marcmolla/juju,bac/juju,howbazaar/juju,dooferlad/juju,perrito666/juju,alesstimec/juju,axw/juju,axw/juju,mjs/juju,gabriel-samfira/juju,frankban/juju,dimitern/juju,bac/juju,mjs/juju,ericsnowcurrently/juju,axw/juju,bz2/juju,bz2/juju,gabriel-samfira/juju,bac/juju,marcmolla/juju,frankban/juju,mikemccracken/juju,bac/juju,bz2/juju,macgreagoir/juju,kat-co/juju,anastasiamac/juju,mikemccracken/juju,marcmolla/juju,gabriel-samfira/juju,dooferlad/juju,dimitern/juju,waigani/juju,ericsnowcurrently/juju,bz2/juju,mjs/juju,alesstimec/juju,ericsnowcurrently/juju,howbazaar/juju,mikemccracken/juju,reedobrien/juju,waigani/juju,AdamIsrael/juju,macgreagoir/juju,alesstimec/juju,frankban/juju,bz2/juju,dimitern/juju,kat-co/juju,waigani/juju,macgreagoir/juju,macgreagoir/juju,waigani/juju,dimitern/juju,perrito666/juju,perrito666/juju,dooferlad/juju,howbazaar/juju,AdamIsrael/juju,AdamIsrael/juju,anastasiamac/juju,frankban/juju,anastasiamac/juju,perrito666/juju,kat-co/juju,gabriel-samfira/juju,alesstimec/juju,axw/juju,ericsnowcurrently/juju,mikemccracken/juju,ericsnowcurrently/juju,dooferlad/juju,reedobrien/juju,perrito666/juju,dooferlad/juju,mjs/juju,reedobrien/juju,marcmolla/juju,howbazaar/juju,bac/juju,reedobrien/juju