This is a simple plugin to a Class::DBI subclass which provides a 'retrieve_all_sorted_by' method. WWW: http://search.cpan.org/dist/Class-DBI-Plugin-RetrieveAll/