mirror of
https://github.com/semver/semver.git
synced 2026-07-11 04:52:47 -05:00
[PR #206] [CLOSED] Switched from Lexical Sort to Natural Sort #4089
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/semver/semver/pull/206
Author: @tedivm
Created: 7/3/2014
Status: ❌ Closed
Base:
master← Head:natural_sort📝 Commits (2)
fce95ccSwitched from Lexical Sort to Natural Sort8e7a62bClarified what natural sort means for the standard📊 Changes
1 file changed (+14 additions, -11 deletions)
View changed files
📝
semver.md(+14 -11)📄 Description
This change better first with people’s expectations. This way
1.0.0-beta2 has a lower precedence than 1.0.0-beta11, because “2” is
smaller than “11”- a point missed by lexical sorting. It also solves
the alphabetical issue because natural sorting is essentially case
insensitive (it may or may not make sense to specify that two versions
of the same exact name but different cases is frowned upon, in which
case it’s case sensitive for our purposes).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.