mdocVersionCompare

Version comparison method for mdoc versions.

This compares mdoc version strings and returns a negative number if the first version is considered less than the second version, 0 if they are considered equal, and positive otherwise.

For example, called with mdocVersionCompare("1.0", "1.1") will return a negative number.

Return

a positive number, negative number, or 0.

Parameters

a

a version string, for example "1.0"

b

another version string, for example "1.1"