Order numbered files
- Input or situation
- file10 file2 file1
- Result
- file1 file2 file10
Natural order reads the digit sequences as numbers. Ordinary A–Z ordering puts file10 before file2.
Sort any list alphabetically, by length, in natural order or at random. Natural order is the one you usually want for filenames — it puts file2 before file10.
Runs in your browser — your input is not uploaded to ToolsNow.
It reads runs of digits as numbers rather than text, so file2 comes before file10. Plain alphabetical sorting puts file10 first because "1" sorts before "2" character by character.
It uses your browser’s locale-aware collation, so é sorts next to e rather than after z. That matches how a dictionary in most European languages orders words.
It uses a Fisher–Yates shuffle, which gives every ordering an equal chance. Press "Shuffle again" for a fresh order — it will not reshuffle under you while you type.
Yes. Tick "Also remove duplicates" and the list is deduplicated before sorting.
Each line is one item. Choose natural sorting for numbered filenames, alphabetical sorting for words, and numeric data tools when a column needs calculations rather than ordering.
Natural order reads the digit sequences as numbers. Ordinary A–Z ordering puts file10 before file2.
Published by ToolsNow. How tools and sources are checked · Report a problem