Fixed tree sort.