fix: version number sort #3

Merged thouveni merged 1 commit into tdm:master from tdm:fix/version-number on 2 Feb 2023
@dreptin dreptin commented on 2 Feb 2023

This PRs applies the same fix as this commit. Which fixes the latest version number not being found when it exceeds 9.

Previous behavior:

$ git tag | sort -n  # numeric sort
packageName@1.10.0
packageName@1.9.0

New behavior:

$ git tag | sort -V  # version sort
packageName@1.9.0
packageName@1.10.0

It makes sense because 1.10 < 1.9 when version numbers are interpreted as numerical values.

@thouveni thouveni referenced the pull request on 2 Feb 2023

fix: version number sort

@thouveni thouveni merged commit afb6a0a into master from fix/version-number on 2 Feb 2023
@thouveni thouveni closed this pull request on 2 Feb 2023
Labels

Priority
default
Milestone
No milestone
Assignee
No one
2 participants
@dreptin @thouveni