Demonstrate sort_domains work, and use it
Fix bugs in test
Heh, proper domain name sorting