the shares purchased first will always be sold first, so if you have held your shares more than one year the you will be eligible for the 50% tax discount.