Sure, light first, the heavens and the Earth and all that. That was the first day. The sun was created on the fourth day.
So the first three “days” were without a Sun.
MUST have been exactly 24 hours!/s
More than anything, that shows the lack of understanding of the people who wrote those scrolls, what a day was, in the astronomical sense.
Wasn’t the earth flat, then?
And with the Earth coming before the sun, I wonder who gave the “push” to the Earth to make it spin around this “newly appearing” sun, all of a sudden, from random motion.