Thanks for your query.
your daughter is having syncopal attack,which is because and many causes and hypoglycemia
is one amongst them,as you said she got better after taking sugar and juices.i suggest to give her plenty of fluids,and take her to pediatrician
to rule out other causes.
Your daughter will be fine.