Each address has a nonce, a number that begins at zero and is incremented after every processed transaction.
Each transaction also has a nonce. Part of signing the transaction requires the address to have exactly the same nonce of the transaction. This forces all transactions to occur in the order sent, and also prevents a duplicate transactions.