mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +02:00
f9aadeef1c
- It does not make any sense with newer server data - It was to be deprecated anyway
17 lines
341 B
Go
17 lines
341 B
Go
package cyberghost
|
|
|
|
import (
|
|
"sort"
|
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
)
|
|
|
|
func sortServers(servers []models.CyberghostServer) {
|
|
sort.Slice(servers, func(i, j int) bool {
|
|
if servers[i].Country == servers[j].Country {
|
|
return servers[i].Hostname < servers[j].Hostname
|
|
}
|
|
return servers[i].Country < servers[j].Country
|
|
})
|
|
}
|