refactored urlwrapper object comprehension and sorting