Sort::Key::DateTime allows to sort objects by some (calculated) key of type DateTime. WWW: http://search.cpan.org/dist/Sort-Key-DateTime/