J
John Deuf
Is there a way to sort case insensitively an array (without creating
another array with lowercase values for instance) ?
another array with lowercase values for instance) ?
Is there a way to sort case insensitively an array (without creating
another array with lowercase values for instance) ?
Uri Guttman said:AK> sort { uc($a) cmp uc($b) } @arr;
BE> my @sorted = sort { lc $a cmp lc $b } @unsorted;
now make up your minds!! which one of those is better? will there be
another war on uc vs lc?
Is there a way to sort case insensitively an array (without creating
another array with lowercase values for instance) ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.