::
I agree with the comment that the tax code likely doesn’t require you to actually spend the oldest coin first to treat the sale that way.
However, for UTXO-based currencies (Like Bitcoin, dogecoin, etc), Ledger Live has a „Coin Control“ option you can use to manually specify which „coins“ you are spending:
https://support.ledger.com/hc/en-us/articles/360015996580-Using-Coin-control?docs=true
For account-based Blockchains like Ethereum, your balance is just kept as a value on the blockchain so there is no real technical concept of spending an earlier acquired token versus a later one.