Compares two versions excluding build identifiers (the bit after + in the semantic version string).
+
Sorts in ascending order when passed to Array.sort().
Array.sort()
Optional
0
v1
v2
1
-1
Compares two versions excluding build identifiers (the bit after
+
in the semantic version string).Sorts in ascending order when passed to
Array.sort()
.