link directive fixed, sorting pre filtering fails