Fix semantic versioning sort order

Pre-releases always have a lower precedence than the associated production version. Fix the example sort to reflect that and clarify this precedence behavior in the description.

This fixes #2169.

Based on original PR #2182.
This commit is contained in:
Karel Zikmund 2017-08-25 17:09:42 -07:00
Родитель 152dbe8a4b
Коммит 51024438e1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -17,7 +17,7 @@ Its also possible to append a dash followed by a string after the version num
Versions that are not pre-releases are called productions.
For instance, a valid Semantic Versioning number sort would be:
1.0.0 -> 1.0.1 -> 1.0.1-alpha -> 1.1.0 -> 1.1.1 -> 2.0.0.
1.0.0 -> 1.0.1-alpha -> 1.0.1 -> 1.1.0-alpha -> 1.1.0-rc1 -> 1.1.0 -> 1.1.1 -> 2.0.0.
## Executable