Skip to Content
gnux

-r, --reverse

Reverse the result of comparisons.

An option of sortx.

Usage

sortx -r [FILE]...
sortx --reverse [FILE]...

Details

ShortLongValueDefaultMeaning
-r--reversenonereverse the result of comparisons

Examples

Sort in reverse order

sortx -r names.txt
sortx -rn numbers.txt | headx -n 3

Sort a directory listing in the portable gnux shell

gnux shell -c 'lsx -1 | sortx -r'

Help in the terminal

gnux help sortx --reverse

On this page