zachleat@zachleat.com’s Mastodon Archive

♻️ Reblog of Andrew Douglass (ardouglass@mastodon.social)

@zachleat

From semver.org/#spec-item-11

Identifiers consisting of only digits are compared numerically.

Identifiers with letters or hyphens are compared lexically in ASCII sort order.

Numeric identifiers always have lower precedence than non-numeric identifiers.

A larger set of pre-release fields has a higher precedence than a smaller set, if all of the preceding identifiers are equal.