naturally

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: MIT Imports: 5 Imported by: 0

README

Build Status

naturally

Go implementation of a natural sort. Numbers and non-numbers are treated as separate sub-parts to make the sort more natural for human readability. Inspired by the Perl implementation Sort::Naturally.

Documentation

Overview

Implements "natural" sort -- alphabetic portion sorted alphabetically, numeric part sorted numerically.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringSlice

type StringSlice sort.StringSlice

Naturally implements sort.Interface

func (StringSlice) Len

func (p StringSlice) Len() int

func (StringSlice) Less

func (p StringSlice) Less(a, b int) bool

func (StringSlice) Swap

func (p StringSlice) Swap(a, b int)

Jump to

Keyboard shortcuts

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