naturalsort: Natural Ordering

Provides functions related to human natural ordering. It handles adjacent digits in a character sequence as a number so that natural sort function arranges a character vector by their numbers, not digit characters. It is typically seen when operating systems lists file names. For example, a sequence a-1.png, a-2.png, a-10.png looks naturally ordered because 1 < 2 < 10 and natural sort algorithm arranges so whereas general sort algorithms arrange it into a-1.png, a-10.png, a-2.png owing to their third and fourth characters.

Author
Kosei Abe
Date of publication
2016-08-30 12:48:28
Maintainer
Kosei Abe <mail@recyclebin.jp>
License
BSD_3_clause + file LICENSE
Version
0.1.3

View on CRAN

Man pages

naturalfactor
Natural Ordering Factor
naturalsort
Natural Ordering Sort
naturalsort-package
Natural Ordering Sort

Files in this package

naturalsort
naturalsort/tests
naturalsort/tests/issue-3.R
naturalsort/tests/issue-1.R
naturalsort/tests/issue-2.R
naturalsort/tests/spec.R
naturalsort/NAMESPACE
naturalsort/NEWS
naturalsort/R
naturalsort/R/sort.R
naturalsort/R/factor.R
naturalsort/R/naturalsort-package.R
naturalsort/R/order.R
naturalsort/MD5
naturalsort/DESCRIPTION
naturalsort/man
naturalsort/man/naturalsort.Rd
naturalsort/man/naturalfactor.Rd
naturalsort/man/naturalsort-package.Rd
naturalsort/LICENSE