Skip to content

semver-like version sorting

While it would be impossible to write a fully semver-compliant sorting algorithm in three lines, this patch attempts to solve for the common version formats used by openwrt by normalizing version numbers that don't have a "prerelease" version by appending a "-Z" to them. This should sort beta and rc versions lower than the final release.

Signed-off-by: Sam Edwards sam@samedwards.ca

Merge request reports