Registry / utility / fvbommel-sortorder

fvbommel-sortorder

JSON →
library1.1.0gogounverified

Package sortorder implements sort orders and comparison functions, including natural order where integers embedded in strings are compared by value.

go get github.com/fvbommel/sortorder
INSTALL
IMPORT
SIG · FVBOMMEL-SORTORDER
F
fvbommel-sortorder
utilitygov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sortorder
github.com/fvbommel/sortorder

Natural order sorting of strings

package main import ( "fmt" "sort" "github.com/fvbommel/sortorder" ) func main() { strs := []string{"file2", "file10", "file1"} sort.Sort(sortorder.Natural(strs)) fmt.Println(strs) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fvbommel-sortorder — go get fvbommel-sortorder · libregistry