sorted the data into two arrays with respect to their domain names