Typically people are pretty good about lining up in numerical order, but if you feel that someone is in the wrong position, you can nicely ask "I am A31; what number are you?", and they will take their appropriate place. In the big scheme of things, though, it does not really make much of a difference whether n or n+2 people are ahead of you.