Fixing filters tsort to sort.