Extend the simple comparison of timestamps as bare integer values (e.g., "20210201112034") to more complex strings (e.g., "1.0.3b").
Consider adopting the logic of --compare-versions in the dpkg command (Debian package manager):
https://www.man7.org/linux/man-pages/man1/dpkg.1.html
Perl implementation of the algorithm for reference:
https://st.aticpan.org/source/GUILLEM/Dpkg-1.20.7/lib/Dpkg/Version.pm
https://metacpan.org/release/Dpkg