Remove special check in sort server by name

This commit is contained in:
Manuel de Brito Fontes 2017-03-07 20:07:43 -03:00
parent bebd596b3f
commit 9ed7bc6ad1

View file

@ -54,10 +54,6 @@ type ServerByName []*Server
func (c ServerByName) Len() int { return len(c) }
func (c ServerByName) Swap(i, j int) { c[i], c[j] = c[j], c[i] }
func (c ServerByName) Less(i, j int) bool {
// special case for catch all server
if c[j].Hostname == "_" {
return false
}
return c[i].Hostname < c[j].Hostname
}