cmd/sort.go | 8 ++++---- diff --git a/cmd/sort.go b/cmd/sort.go index 6bac930002d3bbf08b10e1c6494b8c974674b4d590357883680e6475dcdda1be..83b321284b54a7fd3488cfd726fd42c43381273084ebc509233f273e992235aa 100644 --- a/cmd/sort.go +++ b/cmd/sort.go @@ -84,7 +84,7 @@ flag.PrintDefaults() fmt.Fprint(flag.CommandLine.Output(), ` By default all URLs are sorted by priority. If "cc"s are specified, then sort by them with descending order. By specifying "!" before "cc", you -inverse the order. If "cc" is "rand", then shuffle URLs. +reverse the order. If "cc" is "rand", then shuffle URLs. For specifying the region/continent use: c:af -- Africa c:an -- Antarctica @@ -135,9 +135,9 @@ urls[i], urls[j] = urls[j], urls[i] }) continue } - invert := false + reverse := false if len(cc) > 0 && cc[0] == '!' { - invert = true + reverse = true cc = cc[1:] slices.Reverse(urls) } @@ -145,7 +145,7 @@ if strings.HasPrefix(cc, "c:") { cc = Continents[cc[2:]] } sort.Stable(ByCC{cc: cc, urls: urls}) - if invert { + if reverse { slices.Reverse(urls) } }