Is there a way to keep the oldest sample among identical sequences?

We’re trying to do representative subsampling for phylodynamics analysis. Very good to know, thanks!!