So, God has to perform creation on Your timeline for it to be correct. Gotcha.
More likely that the guy(s) who wrote Genesis didn’t know that heavier elements come from stars, hence stars before planets.