Remove special check in sort server by name
This commit is contained in:
parent
bebd596b3f
commit
9ed7bc6ad1
1 changed files with 0 additions and 4 deletions
|
@ -54,10 +54,6 @@ type ServerByName []*Server
|
||||||
func (c ServerByName) Len() int { return len(c) }
|
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) Swap(i, j int) { c[i], c[j] = c[j], c[i] }
|
||||||
func (c ServerByName) Less(i, j int) bool {
|
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
|
return c[i].Hostname < c[j].Hostname
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue