Skip to content

JuliaStrings/NaturalSort.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NaturalSort

Build Status codecov.io

Natural Sort Order in Julia

Usage

Pass lt=natural to a sorting function such as sort.

Example

julia> using NaturalSort

julia> sort(["a1", "a2", "a10"])
3-element Array{String,1}:
 "a1"
 "a10"
 "a2"

julia> sort(["a1", "a2", "a10"], lt=natural)
3-element Array{String,1}:
 "a1"
 "a2"
 "a10"