$default_sort defined twice