From 66b1734d3f720281941d8470af2c1ac157b56f31 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 6 Mar 2026 15:20:54 +0300 Subject: [PATCH] Use "reverse" instead of "invert" --- cmd/sort.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) } } -- 2.52.0