Tag comparison was treating stable as higher than pre-release causing pa...

...tch to bump when it shouldn't

Scenario which was broken was merging release branch into master, which was calculating v4.0.0, but the last tag was a beta tag on the release branch.

Because of the bug the pre-release was larger than the calculated version from the branch, and it bumped the patch