Rearrange hosts.