It is quite possible that sexual selection has been there as long as the sexes. The whole point of having two sexes is the ability to choose the mate. And presumably already from the outset, there was pressure to find the fittest mate. But since real measurements of strength and viability were impossible, there had to be proxies for them.