my @array = ( [ sort @value1 ], [ sort @value2 ], # ... and so forth );