reorder result like a tree according relation parent/child.