Sort::Key provides a set of functions to sort object arrays by some (calculated) key value. WWW: http://search.cpan.org/dist/Sort-Key/