sort by hostname, closes #206