Yet another approach to the first part:
@sorted = sort { substr($a, 0, 1) cmp substr($b, 0, 1) || lc($a) cmp lc($b) } @needs_sorting;
Hugo
In reply to Re: criteria based array sorting
by hv
in thread criteria based array sorting
by zentara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |