Answer
Flowers were believed to be the determining factor in categorizing the sex of plants, as proposed by the Andalusian philosopher and botanist Avempace. This classification was primarily based on the observation of distinct reproductive organs within flowers, namely, stamens and pistils, which further defined the male and female reproductive roles in plants.