in reply to Substring Sort
my @sorted = map { $_->[0] } sort { $a->[1] cmp $b->[1] } map { my ($n,$t) = split('|:|',$_,2); [$_,$t] } @origarray; # change this to sort by lower case: [$_,lc($t)]
Jeff
R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: Substring Sort
by arhuman (Vicar) on Jun 01, 2001 at 01:52 UTC | |
by chipmunk (Parson) on Jun 01, 2001 at 05:21 UTC | |
|
Re: (jeffa) Re: Substring Sort
by MeowChow (Vicar) on Jun 01, 2001 at 02:08 UTC |