Fixes search_fqdns to actually return a sorted list of FQDNs