Prerelease order
SemVer prerelease sort example
Sort alpha, alpha.2, alpha.10 and the final release by exact precedence.
·5 min read
The prerelease preset makes numeric comparison and release-above-prerelease behavior visible in one list.
alpha.2 comes before alpha.10
The identifier is parsed as an integer rather than sorted character by character.
The release comes last
1.0.0 has higher precedence than every 1.0.0 prerelease.