fixing children sorting