[pkgsite] internal/natsort: add natural sorting

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Jan 16, 2026, 4:42:02 PM (2 days ago) Jan 16
to Egon Elbre, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, kokoro, Michael Pratt, Go LUCI, Alan Donovan, golang-co...@googlegroups.com

Gopher Robot submitted the change

Unreviewed changes

7 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
internal/natural: add natural sort order

Natural sort order allows comparing strings such that sequences of digits
are compared numerically rather than lexicographically. For example:

"uint8" < "uint16" < "uint32"

Updates golang/go#77160
Change-Id: Iddf6aa33427131a5f0d7f235d61ab7ad6cf6f92c
Reviewed-by: Alan Donovan <adon...@google.com>
Auto-Submit: Michael Pratt <mpr...@google.com>
Reviewed-by: Michael Pratt <mpr...@google.com>
kokoro-CI: kokoro <noreply...@google.com>
Files:
  • A internal/natural/compare.go
  • A internal/natural/compare_test.go
Change size: M
Delta: 2 files changed, 242 insertions(+), 0 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Alan Donovan, +1 by Michael Pratt
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
  • requirement satisfiedkokoro-CI-Passes: kokoro-CI+1 by kokoro
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: pkgsite
Gerrit-Branch: master
Gerrit-Change-Id: Iddf6aa33427131a5f0d7f235d61ab7ad6cf6f92c
Gerrit-Change-Number: 736560
Gerrit-PatchSet: 9
Gerrit-Owner: Egon Elbre <egon...@gmail.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Egon Elbre <egon...@gmail.com>
Gerrit-Reviewer: Florian Lehner <lehner.f...@gmail.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: kokoro <noreply...@google.com>
Gerrit-CC: kokoro <noreply...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages