fixed sorting problem where children fell under wrong parents