in reply to criteria based array sorting
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: criteria based array sorting
by Roy Johnson (Monsignor) on Feb 12, 2004 at 21:00 UTC |