[GH-ISSUE #551] clarification on the ordering of pre-releases #5518

Closed
opened 2026-06-15 11:59:25 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @mastupristi on GitHub (Mar 16, 2020).
Original GitHub issue: https://github.com/semver/semver/issues/551

referring to point 11:

Precedence for two pre-release versions with the same major, minor, and patch version MUST be determined by comparing each dot separated identifier from left to right until a difference is found as follows: identifiers consisting of only digits are compared numerically and identifiers with letters or hyphens are compared lexically in ASCII sort order.

So the following precedence apply:
1.2.3-alpha < 1.2.3-beta < 1.2.3-delta <1.2.3-gamma
despite the fact that in the Greek alphabet the order is

  1. alpha
  2. beta
  3. gamma
  4. delta

is that correct?

best regards
Max

Originally created by @mastupristi on GitHub (Mar 16, 2020). Original GitHub issue: https://github.com/semver/semver/issues/551 referring to point 11: > Precedence for two pre-release versions with the same major, minor, and patch version MUST be determined by comparing each dot separated identifier from left to right until a difference is found as follows: identifiers consisting of only digits are compared numerically and identifiers with letters or hyphens are compared lexically in ASCII sort order. So the following precedence apply: 1.2.3-alpha < 1.2.3-beta < 1.2.3-delta <1.2.3-gamma despite the fact that in the Greek alphabet the order is 1. alpha 2. beta 3. gamma 4. delta is that correct? best regards Max
Author
Owner

@klehelley commented on GitHub (Mar 16, 2020):

That is indeed correct.

<!-- gh-comment-id:599440842 --> @klehelley commented on GitHub (Mar 16, 2020): That is indeed correct.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#5518