Files
gluetun/internal/updater/providers/surfshark/sort.go

14 lines
233 B
Go
Raw Normal View History

package surfshark
import (
"sort"
"github.com/qdm12/gluetun/internal/models"
)
func sortServers(servers []models.SurfsharkServer) {
sort.Slice(servers, func(i, j int) bool {
return servers[i].Region < servers[j].Region
})
}