Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 760 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 760 Bytes

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"