They relate to creation in different ways. The first account is in chronological order, divided into six “days.” The second is written in order of topical importance. After a brief prologue, it goes right to the creation of Adam, since he and his family are the subject of what comes after, not that of plants and molecules. We learn that after his creation Adam was to live in a beautiful garden in Eden. So the planting of the garden of Eden is mentioned. More is introduced as needed.
No, the order of appearance of life and plants is very different between the two of them. Honest scholars admit that they are two different myths joined together. When your standards for the Bible are "it is literal until it contradicts itself" you are only admitting that it is a book of myths and cannot face that fact.
Lets' go over the Genesis 2 myth:
This is the account of the heavens and the earth when they were created, when the Lord God made the earth and the heavens.
5 Now no shrub had yet appeared on the earth and no plant had yet sprung up, for the Lord God had not sent rain on the earth and there was no one to work the ground, 6 but streams came up from the earth and watered the whole surface of the ground. 7 Then the Lord God formed a man from the dust of the ground and breathed into his nostrils the breath of life, and the man became a living being.
<Please note that Man was the first organism, before all other animals. Before plants even.>
8 Now the Lord God had planted a garden in the east, in Eden; and there he put the man he had formed. 9 The Lord God made all kinds of trees grow out of the ground—trees that were pleasing to the eye and good for food. In the middle of the garden were the tree of life and the tree of the knowledge of good and evil.
,<Trees did not exist, The garden was "planted" but if you ever raised a garden you would know that the plants do not come up instantly. So once again, not even plant life before Adam>
10 A river watering the garden flowed from Eden; from there it was separated into four headwaters. 11 The name of the first is the Pishon; it winds through the entire land of Havilah, where there is gold. 12 (The gold of that land is good; aromatic resin and onyx are also there.) 13 The name of the second river is the Gihon; it winds through the entire land of Cush. 14 The name of the third river is the Tigris; it runs along the east side of Ashur. And the fourth river is the Euphrates.
15 The Lord God took the man and put him in the Garden of Eden to work it and take care of it. 16 And the Lord God commanded the man, “You are free to eat from any tree in the garden; 17 but you must not eat from the tree of the knowledge of good and evil, for when you eat from it you will certainly die.”
<Man is to work the garden>
18 The Lord God said, “It is not good for the man to be alone. I will make a helper suitable for him.”
,<Man is lonely and needs some "help">
19 Now the Lord God had formed out of the ground all the wild animals and all the birds in the sky. He brought them to the man to see what he would name them; and whatever the man called each living creature, that was its name. 20 So the man gave names to all the livestock, the birds in the sky and all the wild animals.
But for Adam no suitable helper was found.
<Poor Adam, he was not into animals>
21 So the Lord God caused the man to fall into a deep sleep; and while he was sleeping, he took one of the man’s ribs and then closed up the place with flesh. 22 Then the Lord God made a woman from the rib he had taken out of the man, and he brought her to the man.
23 The man said,
“This is now bone of my bones
and flesh of my flesh;
she shall be called ‘woman,’
for she was taken out of man.”
24 That is why a man leaves his father and mother and is united to his wife, and they become one flesh.
25 Adam and his wife were both naked, and they felt no shame.
,<Translation, Bom Chica Wah Wah>
At any rate, the order is completely different in Gen 2.