solved ordered leafs