Jenkins hash value checkout

I am using Jenkins server to build our Angular code. While building our projects uses the tag for display the product version number on the app pages.
In our situation project can have same hash commit reference to multiple different tag number.IN this situation Jenkins pick latest tag number as the project version even I build with Lower tag. Is there any solution in Jenkins to take the correct Tag number instead of its hash value