A little context.
Sorts lines using English locale comparison with numeric awareness. Blank lines are retained and identical lines are not removed.
Putting numbered labels into readable order
Use the sorter for a list such as item1, item2 and item10. Numeric-aware comparison keeps item2 before item10 rather than sorting only by individual character codes. Choose the descending mode to reverse the sorted list.
Interpreting the result and avoiding mistakes
Sorting retains duplicates and blank lines. English locale comparison is not a byte-order comparison or a language-specific dictionary rule for every locale. If order encodes priority, make a copy before sorting.
A reproducible workspace example
These are the starting values in the form above. The result below is calculated from these values when the page is built, using the same processing engine as the tool.
- Lines
pear apple Banana
- Order
A to Z
Calculated output
apple Banana pear
Quick reference
item2 sorts before item10How to use this tool
- Enter lines, order in the workspace above.
- Select Run tool to process your input. Invalid values produce a message next to the form.
- Copy the result or download it as a file. Reset example restores the original input.