Wainwright 12-4 after beating reeling Brewers, Cards tie for 1st