Between the sell order and the euros in your current account stand the exchange, your bank and the tax office. Knowing the order of events saves fees, waiting time and, in the best case, the entire tax on the gain.