Multiple choice technology programming languages

How to sort a file in decending order

  1. sort -d

  2. sort

  3. sort -r

  4. sort -R

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The sort -r command reverses the default ascending order to descending. Without -r, sort arranges lines from smallest to largest (alphabetically or numerically). The -r flag simply inverts this order arrangement.