lilpack.semver.compare

lilpack.semver

compare(a, b) -> order

Compare two versions

Returns -1 if a < b, 0 if equal, 1 if a > b. Both arguments may be version strings or already-parsed tables. A version with a prerelease sorts below the same version without one.