A Transformation on Ordered Trees