in reply to sorting a two dimensional array by one column

my @sorted = sort { $a->[$the_col] <=> $b->[$the_col] } @two_dim;

Have a look at perllol.

After Compline,
Zaxo