Build metadata is ignored for precedence.
SemVer.compare
int compare(const SemVer other) constCompares this SemVer to another according to semver precedence rules.
Returns
-1 if this < other, 0 if equal, 1 if this > other.
int compare(const SemVer other) constCompares this SemVer to another according to semver precedence rules.
Build metadata is ignored for precedence.