Sort modes compared
| Mode | Result for file10, file2, file1 |
|---|---|
| Alphabetical | file1, file10, file2 |
| Natural | file1, file2, file10 |
| Numeric | file1, file2, file10 (uses the number in each line) |
| Length | file1, file2, file10 (shortest first) |
Alphabetical sorting uses English collation, so accented letters sort next to their base letter (é next to e) rather than after z. Numeric sorting reads the first number in each line, including decimals and negatives; lines without a number go last.
Shuffle
Shuffle uses the Fisher–Yates algorithm, so every order is equally likely. Each change re-shuffles the list.