Compare two semantic versions — including prerelease tags like -rc.1 — and sort a whole list of versions in ascending order. The rules follow the SemVer 2.0.0 specification. Runs entirely in your browser.
How it works
Versions are compared field by field (major, minor, patch), then by prerelease identifiers with the spec’s numeric-before-alphanumeric rule. It is the same logic your package manager uses — paste dependency versions here when a resolver surprises you. For dependency JSON, the JSON diff checker compares lockfiles.