Tree sorts preparing