NAME
Articulate::Sortation - Sort content items
DESCRIPTION
use Articulate::Sortation;
$request = sortation->sort( [ $item1, $item2 ], {} );
This accepts an array of items. pass the item and the request to a series of Sortation objects.
Sortations should not mutate the items, however there is no technical barrier to them doing so.
CONFIGURATION
This can be set up to perform default sorts, however it's fully anticipated that you will need to configure sorts on a per-item basis (e.g. the user may request items with a different sort order).
FUNCTION
sortation
This is a functional constructor: it returns an Articulate::Sortation object.
ATTRIBUTES
sortations
An array of the Sortation classes which will be used.
METHODS
sort
Passes the item and request objects to a series of Sortation objects, and returns the item after each has done their bit.