Let's take a step back, to, say the Genesis account. It has many events occuring the wrong order (eg: earth created before sun, land plants created before the sun, grass before fish, etc.) The actual information that is available to us says this is not so. So either the Bible is wrong or observational science is wrong.
The way to make the Bible right is to load it up with plenty of exegeses and various "interpretations" or even (gasp) allowing things to be metaphorical. But when dealing with someone like AV or other Biblical Literalists it becomes a problem in squaring this particular circle.
The assumptions are thus pretty much set in stone: 1) the Bible is literal and always correct 2) no matter what is shown (even if one believes God gave us the earth to see for ourselves) if what we see on the earth contradicts the literal Bible the earth is wrong.
In essence a way to look at this challenge is to say "God gave you a planet's worth of data" when it disagrees with the book which is correct?
This is an oversimplification.
First, can you cite a source that says the sun was formed before the earth? From my understanding, the solar system existed before the sun "lit" due to its own gravity. So, when you say "wrong order," the point is moot. Given the power of a deity such as the one described in Christian Scripture, could not this be a possibility? To what "information" are you referring? As for the plants being created before the sun: again, could not an omnipotent God (who created the laws of nature) do such a thing?
Second, it is not a tenet of the doctrine of biblical inerrancy to take the Bible "literally" (you actually mean "liter
istically"; taking Scripture literally is simply understand what the author
meant by what is said, not merely what the author said). So, yes, the Bible is always correct, but there is metaphor in Scripture. Anyone who would say otherwise is a heretic because they, for instance, must believe God to have a physical body, which is heresy. Is Genesis 1-2 figurative/poetic? I don't know. It could be. But, the interest is not what the text means
to us, but
what the author meant by what is said. That is what makes passages like Genesis 1-2 so difficult; we are not exactly sure what the author meant. The existence of figurative language does not, as you seem to be assuming, that Scripture is factually suspect. Genesis 1-2 was not written to be a science textbook for Hebrew children.
Personally, I am of the (ancient) belief that all truth is God's truth no matter where it is found (Calvin held to essentially the same belief). If science tells me, for instance, that the sun does not revolve around the earth, and there is reasonable evidence to conclude this is true, then I have no problem with that. Therefore, it is reasonable to conclude that when Scripture says the sun stopped in the sky, I understand that now to be phenomenological language, and the inerrancy of Scripture is maintained since, from a human perspective, the statement is true. Do not weathermen/-women say the same thing when they talk about "sunrise" and "sunset"?
In sum, not all biblical inerrantists (of which I am a staunch one) are irresponsible as many Fundamentalists are with their hermeneutic. When I am presented with data that seems to contradict Scripture, I weigh the evidence. If science seems to be correct, then I re-examine my interpretation of relevant scriptural passages for possible solutions without damaging the doctrine of inerrancy. So far, nobody has presented me with scientific evidence that creates an impasse for this endeavor, hence my issue with the extremeness of this particular hypothetical, which brings us back to square one...