About This Tool
Text Sorter organizes filenames, numbered items, and other lists using text, natural, numeric, length, or random order.
How to Use It
- Enter one item per line.
- Choose ascending, descending, length, natural, numeric, or shuffle mode.
- Adjust case sensitivity, comparison trimming, and blank-line handling as needed.
- Click Sort, check the result, and copy or download the TXT output.
Examples
- The text order 1, 10, 2 becomes 1, 2, 10 in numeric mode.
- Natural sorting orders file10, file2, file1 as file1, file2, file10.
- Shuffling changes the order but keeps every line not excluded by the blank-line option.
Rules and Limits
Text sorting supports multiple languages; natural order compares consecutive digits as numbers. Length is measured in Unicode code points, so an emoji’s two UTF-16 code units do not count as two code points. Numeric mode accepts valid numbers only; sort numbers beyond safe integer precision as text. You can ignore surrounding whitespace when comparing while preserving the original text. Equal items keep their original relative order; shuffle rearranges the lines.
Common Uses
- Organize filenames, version strings, or numbered lists.
- Compare variable names or copy by length.
- Shuffle practice questions or ordinary display lists.
Privacy
Your text, files, and previews are processed in your browser. Your input is never uploaded or automatically saved. Save anything you need to keep before leaving the page.
FAQ
How does natural order differ from text order?
Text order compares characters. Natural order treats consecutive digits as numeric parts, placing file2 before file10.
Why does 10 sometimes come before 2?
Text comparison starts with the first character, and 1 precedes 2. Select numeric or natural sorting for the order you need.
Can numeric mode sort arbitrary text?
No. A line that is not a finite number produces a visible error instead of an unpredictable ordering.
What is shuffle suitable for?
Use it to reorder ordinary lists such as practice questions or presentation items. It is not intended for generating passwords or drawing prize winners.