NAME

Articulate::Sortation::Slug - natural slug sorting

DESCRIPTION

This implements the Articulate::Role::Sortation::AllYouNeedIsCmp role to provide a sorter object which will break up

METHODS

One method provided here, the rest are as in Articulate::Role::Sortation::AllYouNeedIsCmp.

cmp

$self->cmp('foo-1', 'bar');    # bar comes before foo
$self->cmp('foo-2', 'foo-11'); # 2 comes before 11
$self->cmp('foo-2',  'food');  # foo comes before food

Splits into numerical and alphabetical. Sorts the former numerically and the latter alphabetically. All characters other than a-z and 0-9 are treated as 'word breaks' and divide up components but are otherwise ignored.

SEE ALSO