]> Sergey Matveev's repositories - meta4ra.git/commitdiff
Use "reverse" instead of "invert"
authorSergey Matveev <stargrave@stargrave.org>
Fri, 6 Mar 2026 12:20:54 +0000 (15:20 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 6 Mar 2026 12:20:54 +0000 (15:20 +0300)
cmd/sort.go

index 7b19acf9a65f707386a42cf398ac91c34ea19a5b..a98287c9dc18c32cbc8c4eebd4fc59fa55617ba6 100644 (file)
@@ -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)
                }
        }