sort local address by its protocol