He is of course following the Mosaic order of creation, where the creation of the day and night is ascribed to the first day and that of the Sun and Moon to the fourth day (Gen. i. 5, 1–19).