in reply to Alpha numeric sort
You'll be deluged with responses containing the string "Schwartz(ian)? Transform" or "ST". See this post for an explanation. Basically, using the terminology of that post, you want a function
Then, do the ST thang:sub property { my $loc = ( split /,\s+/, $_[ 0 ] )[ 1 ]; $loc =~ /^S\d+H(\d+)$/; return $1; }
my @sorted = map { $_->[0] } sort { $a->[1] <=> $b->[1] } map { [ $_, property( $_ ) ] } @unsorted;
the lowliest monk
|
|---|