[PR #206] [CLOSED] Switched from Lexical Sort to Natural Sort #2672

Closed
opened 2026-04-23 03:07:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/semver/semver/pull/206
Author: @tedivm
Created: 7/3/2014
Status: Closed

Base: masterHead: natural_sort


📝 Commits (2)

  • fce95cc Switched from Lexical Sort to Natural Sort
  • 8e7a62b Clarified 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.

## 📋 Pull Request Information **Original PR:** https://github.com/semver/semver/pull/206 **Author:** [@tedivm](https://github.com/tedivm) **Created:** 7/3/2014 **Status:** ❌ Closed **Base:** `master` ← **Head:** `natural_sort` --- ### 📝 Commits (2) - [`fce95cc`](https://github.com/semver/semver/commit/fce95cc5d2dd43283f8dd901b53ec69684937443) Switched from Lexical Sort to Natural Sort - [`8e7a62b`](https://github.com/semver/semver/commit/8e7a62bd6f4a9706d40f338637a6c2ca8ac1acbd) Clarified what natural sort means for the standard ### 📊 Changes **1 file changed** (+14 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `semver.md` (+14 -11) </details> ### 📄 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 03:07:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#2672