Remove unused global
Wrote cmp_dns_order(url_x, url_y) comparison function for sorting URLs
Sort all_urls in DNS order; add comments