How the four modes compare lines
Alphabetical mode compares lines as text, folding case only when the case-insensitive option is on. Numeric mode reads each line as a number and orders by value, so 10 follows 9 rather than preceding it. Length mode compares character counts. Reverse flips the final order, whichever mode produced it.