-r, --reverse
Reverse the result of comparisons.
An option of sortx.
Usage
sortx -r [FILE]...
sortx --reverse [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-r | --reverse | none | reverse the result of comparisons |
Examples
Sort in reverse order
sortx -r names.txtPrint the three largest numbers of a file
sortx -rn numbers.txt | headx -n 3Sort a directory listing in the portable gnux shell
gnux shell -c 'lsx -1 | sortx -r'Help in the terminal
gnux help sortx --reverse