natsort

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(a, b string) bool

Compare compares 2 strings and provides the order in natural sort order.

Note that only integers are compared. Floating point numbers are treated like 2 integers separated by the '.' rune. See the test file for a list examples.

Note that any leading 0 values are dropped from the number.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL