Sorting Versions

semver versions are often used for software releases.

|release |name |kernel | -..^ | |.. |0.90 |- |0.99.14t |0.91 |- |0.99.14w |1.0 |- |- |1.1 |Buzz |2.0 |1.2 |Rex |2.0.27 |1.3 |Bo |2.0.33 |10 |Buster |10.13 |11 |Bullseye |11.11 |12 |Bookworm |12.10 |2.0 |Hamm |2.0.34 |2.1 |Slink |2.0.34 |2.2 |Potato |2.0.38 |3.0 |Woody |2.2.20 |3.1 |Sarge |2.4.27 |4.0 |Etch |4.0r9 |5.0 |Lenny |5.0.10 |6.0 |Squeeze |6.0.10 |7 |Wheezy |7.11 |8 |Jessie |8.11 |9 |Stretch |9.13 Known Bug: version parsing is still a problem | version | problem | .. | - | v1, v2 | dubious: sort on first or second version (preferred: first) | v1.3 | v1-rc2 | numeric labels should be compared after major, minor, patch | v2-linux-amd64 | major: 2, minor: 0, patch: 0, ... | v2.4-linux-amd64 | major: 2, minor: 4, patch: 0, ...

Adding a ^ or v sorting hint to a column with the version hint (..) will cause the column to be sorted by version number.

Supported Version Formats

Example Description
v1.2.3 full major, minor, patch versions
1.2.3 the v prefix is not required
1 major version only
1.x major, minor version
1.2 major, minor version
1.2.x major, minor version with unknown patch number
1.2.3 major, minor and patch numbers
1.2.3-rc1 full version with qualifier label
1.2.3-linux-amd64 full version with qualifier label
1.2.3 (123abc) full version with build label