How does the new guild challenge work

My guild recently played in a guild war both team had 24 wins but they won the guild war.....is it because it took them less games to get to 24 wins???