hacky tree ordering
patching of ordered tree elements + sets

the ordering is not great if there are changes on both branches