It's not wins to decide group placement, it's total points.
(hypothetically)
Team A wins with 500 and 400, loses with 600 = 1500 total points, 2 wins 1 loss
Team B wins with 400, 300, and 700 = 1400 total points, 3 wins
1st Team A - 1500pts 2 wins
2nd Team B - 1400pts 3 wins