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.
In reply to Re: Re: How do I alphabetize a list of email addresses by domain?
by Kanji
in thread How do I alphabetize a list of email addresses by domain?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |