The Highway Code used to say that you could pass on the inside if there was a slower moving queue on the right
Rule 163 highway code. Stay in your lane if traffic is moving slowly in queues. If the queue on your right is moving more slowly than you are, you may pass on the left.