sort { $a->[2] cmp $b->[2] # by domain first, || $a->[1] cmp $b->[1] # then username }