It's strength of schedule, and if there is still a tie then it's divisional wins (if the tie is between divisional teams). If there is still a tie after that, then it's a coin flip. I don't know how many times it's come down to a coin flip though.