Sort::ArrayOfArrays was written to sort an arbitrary array of arrays, in powerful, different ways. WWW: https://metacpan.org/release/Sort-ArrayOfArrays