A standard Transformer has no recurrence and no convolution, so by itself it cannot tell first from last: without positional information it does not know token order. Positional encodings (fixed sinusoidal patterns or learned vectors) are added to the token embeddings so that 'dog bites man' and 'man bites dog' produce different representations.
§3 · Positional information · p.11
Passage 5Because attention is permutation-equivariant, removing positional information makes the model treat a shuffled sentence nearly the same as the original: it can still compare tokens and find which ones are related, but it cannot distinguish their order. Exam questions on this point ask what property of the sequence is lost, the answer is order, not importance or relevance.
§3 · Positional information · p.12
Passage 6