From: Sergey Matveev Date: Fri, 6 Mar 2026 12:20:54 +0000 (+0300) Subject: Use "reverse" instead of "invert" X-Git-Tag: v1.6.0~1 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=66b1734d3f720281941d8470af2c1ac157b56f31;p=meta4ra.git Use "reverse" instead of "invert" --- diff --git a/cmd/sort.go b/cmd/sort.go index 7b19acf..a98287c 100644 --- a/cmd/sort.go +++ b/cmd/sort.go @@ -84,7 +84,7 @@ func runURLSort() { 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 @@ randomise remaining: }) 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 @@ randomise remaining: cc = Continents[cc[2:]] } sort.Stable(ByCC{cc: cc, urls: urls}) - if invert { + if reverse { slices.Reverse(urls) } }