Context: there is a war going on. Actual use:
A difficult winter is heading their way. But Jonas means to change all that. He finds himself wondering how will history remember this day.
MS Word recommends how history will. Google search shows 98k results for how will history, 180k results for how history will.
EDIT: After more thought, I realized that even though I wrote this intending the intonation to be a question, I have not added the question mark, hence the problem. With a question mark and a proper separation of clauses in the phrase (i.e. a colon), Word doesn't complain anymore.
Bottom line: how history will is more common.
My writing style favors inversion. Even in speech I would prefer to say "how will history". It just makes a lot more sense to me. I have no idea why :).
The question? Why are these two forms both so popular? Is there a recommendation when writing literature as opposed to news articles or legalese?