Added ordering of children in tree