The switch is a bit of metal wire permanently connected at COM. That metal wire then moves between the other two connection points, connecting COM to A1 or A2 in your example.
Hence it does not matter which of the pair of wires is in A1 or A2 as both of these connectors look the same to those...