Everything evolving from single celled organisms means you have to look back there.
So technically the egg would have came second due to how Single Celled Organisms develop into Multi-cellular ones.
At the same time, eggs themselves are a Single Celled Organism. (Ostrich egg being the largest SCO)