reversed depth sorting