Fix func SortHost