Sort::Key::DateTime allows to sort objects by some (calculated) key of type DateTime. WWW: https://metacpan.org/release/Sort-Key-DateTime