Node transformation, children sorting