Semver Compare

Compare two MAJOR.MINOR.PATCH versions.

Compares the first three numeric parts, optional v prefix. Unlike Sort Lines this is not lexicographic. Unlike Regex Tester it does not test a pattern. Pre-release suffixes are ignored. Returns -1, 0, or 1.

cmp: -1

Order: a<b

Normalized A: 1.2.3

Normalized B: 1.10.0