urls.pl moved sort compare into foreach