The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Articulate::Sortation::Numeric - sort strings using the spaceship operator

DESCRIPTION

This implements the Articulate::Role::Sortation::AllYouNeedIsCmp role to provide a very basic numerical sorter object.

METHODS

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

cmp

  $self->cmp($a, $b); # returns $a <=> $b

SEE ALSO