For example, if Alice sent two transactions X and Y with X having a fee rate of 10, nonce of 2 and Y with a feerate of 30, nonce of 3; Transaction X will have a higher priority even though it has a lower feerate. Transaction nonce maintains the order of transactions and protects against double-spend attacks.