Compare two x.y.z semantic versions numerically. Returns -1 if a < b,
1 if a > b, 0 if equal (e.g. 2.10.0 sorts above 2.9.0). Assumes the
SEMVER shape the template/catalog schemas guarantee — missing components
are treated as 0. Exported so consumers (webapp "update available" badge)
share the renderer's ordering instead of re-implementing it.
Compare two
x.y.zsemantic versions numerically. Returns-1ifa < b,1ifa > b,0if equal (e.g.2.10.0sorts above2.9.0). Assumes theSEMVERshape the template/catalog schemas guarantee — missing components are treated as0. Exported so consumers (webapp "update available" badge) share the renderer's ordering instead of re-implementing it.