Created SortGenerateHosts.