NAME

XML::Feed::Aggregator::Sort

VERSION

version 0.0401

SYNOPSIS

# builtin sort methods:

$aggregator->sort_by_date_ascending;
$aggregator->sort_by_date;

# custom sort routine

$aggregator->sort_entries(sub {
  $_[0]->title cmp $_[1]->title
});

NAME

XML::Feed::Aggregator::Sort - Role for sorting feed entries

METHODS

sort_entries

Provide your own sorting routine via a CodeRef, two entries provided as arguments.

sort_by_date

Sort entries with date in descending order.

sort_by_date_ascending

Sort entries with date in ascending order.

SEE ALSO

XML::Feed::Aggregator

XML::Feed::Aggregator::Deduper

AUTHOR

Robin Edwards <robin.ge@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Robin Edwards.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.