if iterable is None or isinstance(iterable, Undefined): | if iterable is None or isinstance(iterable, Undefined): | ||||
return iterable | return iterable | ||||
# Do effective custom sorting of iterable here | # Do effective custom sorting of iterable here | ||||
return sorted(iterable, cmp=fqdn_sort_fn) | |||||
return sorted(set(iterable), cmp=fqdn_sort_fn) |