sort hosts