The solution is simple. Best overall record gets home field advantage, with one exception: if the NL representative is the team from StL, the AL team always gets the advantage. It seems a little unfair, but it doesn't matter anyway. You're in the freakin' World Series!