in reply to Re^2: Need Help! Two Dimentional Array Sorting
in thread Need Help! Two Dimentional Array Sorting

perl -e "print sort {chomp($x=$a); chomp($y=$b); $x cmp $y} <>" file.txt

The following is also a bit challenged in the beauty stakes but avoids the repetitive chomp'ing of the lines. Tested under both M$ shell (with double quotes) and Solaris ksh (with single-quotes).

perl -e "print map{qq{$_$/}} sort map{chomp; $_} <>;" file.txt

I hope this is of interest.

Cheers,

JohnGG