Most children are adopted by age 5... well before they or those around them know or realize the child is homosexual.
At this time there is not biological test for determining homosexualism. That may soon change.
Once it is possible to determine sexual orientation in a baby such may result in being treated differently during the next few years prior to adoption. Children are very perceptive to attention (or the lack) directed at them during these very early formative years.