Mark David Dumlao wrote:
When ordering items by name, a separate and distinct sequence is scene
for A-Z before the sequence for a-z. This is the expected behavior. What
might i need to look up to intermix [Aa]-[Zz]?
Schwartzian Transform is the perlish version of a
technique from LISP: create a compound structure
with the output as payload:
my @sorted
= map
{
$_->[-1]
}
sort
{
$a->[0] cmp $b->[0]
}
map
{
my $sortval = uc $_;
[ $sortval, $_ ]
}
@unsorted_text;
You can use the basic technique to sort anything
(multi-level sorts, numeric, whatever). Same basic
process works in other languages that support anon
arrays or structs.
--
Steven Lembark 85-09 90th St.
Workhorse Computing Woodhaven, NY, 11421
[EMAIL PROTECTED] +1 888 359 3508