Sorting url list so that urls from the same domain are not called together