Similarly, (Genesis 1:1) "In the beginning G–d created the heavens and the earth": I might think that what takes precedence in the verse took precedence in creation. It is, therefore, written (Genesis 2:4) "on the day that the L–rd G–d made earth and heaven" — They were both created together.