my deleted answer of Aug 9 '16 6:28 utc:
you understand the verses incorrectly. do you seriously think that earth and mountains were created earlier than sky?!
my comment Difference between 7 skies and position of the heavens? of Aug 27 '15 at 13:43 utc, and i copied it to What does "seven Earths" mentioned in Quran al Kareem and hadith mean? answer at Nov 2 '16 at 20:33 utc:
i think 7 skies are the structures of universe which stay one type inside another type: our moon and satellites are structure no 1, our sun with its planets and asteroids and other stars with their planets are structure no 2, galaxies are structure no 3 or 4 or 5 ... and upper levels are invisible, because light from them cannot flight to us as fast as universe widens. and 7 earths are in contrawise direction: 1: stones and soil and water etc, 2: molecules, 3: atoms, 4: protons, electrons etc; 5: quarks, leptons, etc ( https://en.wikipedia.org/wiki/Quark ); 6: i do not know.
maybe "and upper levels are invisible, because light from them cannot flight to us as fast as universe widens" was wrong. probably some furthest parts invisible because we see milliards years ago time of them, and stars was not lighted up at that time. but maybe some even more furthest parts will not be visible forever, as i said.
so, that way, the ayats cited by you are correct, because most little particles are the lowest earthes, and most little particles are appeared first, earlier than bigger structures like molecules, galaxies and stars formed.
the word used instead of "mountains" in the arabic original is other word than usually used for mountain quran. this word means "firmly standing", as i remember. it is true, because there are firmly standing structures in the earth like atoms and protons, or, maybe, it means physical laws that work above that particles.
those who ask are also elementary particles who wanted to get or give some electrons and to set into chemical or other connection.
according to science, sky was like smoke, because it consisted of gas and dust before stars and planets formed. (and first scientist who proposed this idea was emmanuel kant, as i know, and he also read quran).
what are days here and why are so many? seems, most little particles were formed in 2 stages, and it is named "creation" of earth. then, that particles started to react with different fields andphysical forces, an react with each other, and create bigger particles, they formed bigger particles in 4 stages. then, all levels of sky were formed into structures in 2 stages. maybe, 1st stage was formation of stars and planets, and 2nd stage was formation of galaxies, and that seems ok, because galaxies has massive blackholes in centers and that blackholes probably needed more time to grow than stars and planets, an generally that process goes from little structures to big structures.
i have written this my interpretation in tatar language with latin script at http://qdb.narod.ru/yazmatxt/CidisarQatCirHamKuk/CidisarQatCirHamKuk.htm nearly in april 2006.