in reply to Re: How do I alphabetize a list of email addresses by domain?
in thread How do I alphabetize a list of email addresses by domain?
That only sorts @emails by domains. To further sort the addresses within each domain, you'd need something like ...
sort { $a->[2] cmp $b->[2] # by domain first, || $a->[1] cmp $b->[1] # then username }
Update: Oops, missed the ||. Thanks Chmrr.
--k.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: How do I alphabetize a list of email addresses by domain?
by Chmrr (Vicar) on Apr 20, 2002 at 14:44 UTC |