Tested tool guide
Text and writing tools
Checked August 16, 2026
What Sort Lines Tool does, with a checked example
Paste a block of lines into this tool and it reorders them in one of four ways: alphabetical, numerical, by length, or reverse order. The block comes back in the new order, ready to copy out. The thing that trips most people up is that alphabetical sorting works on characters, not values: the string '10' sorts before the string '2', because the digit '1' precedes the digit '2' in the character table. When your lines look like numbers, choose the numerical mode, or the ordering will look broken even though the tool did exactly what it was asked.
Worked example
A concrete input and expected output from the current implementation.
->
Expected output
1
2
8
9
10
In numerical mode each line is compared as the value it represents, so 2, 8, and 9 come before 10. The same input in alphabetical mode would return 1, 10, 2, 8, 9, because strings are compared character by character and the digit '1' is smaller than '2', '8', and '9'.