About this text line sorter
Sort lines ascending, descending, or by length. Ascending and descending use deterministic UTF-16 ordering. Length uses Unicode code points; equal-length lines keep their original order. Work directly with your own text in this browser without signing in or uploading a document. Review the result before copying it into another application, and use Reset to clear the workspace when you are finished. The examples below show the exact behavior to expect, while the limitations explain cases where another workflow may be more suitable.
How it works
Ascending and descending use deterministic UTF-16 ordering. Length uses Unicode code points; equal-length lines keep their original order.
Try these examples
pear apple
apple pear (ascending)
bbb a cc
a cc bbb (shortest first)
Limitations & privacy
Ordering is case-sensitive and not locale-aware or numeric. Empty lines are included and duplicates remain. Maximum text input: 100,000 UTF-16 units.
Inputs and results stay in this browser. Only tool identifiers are stored for your recently used tools. You can clear that history from the directory.
A few good questions
How does this tool handle my input?
Ascending and descending use deterministic UTF-16 ordering. Length uses Unicode code points; equal-length lines keep their original order.
Does my text leave this browser?
No. Processing runs locally; tool input and results are not uploaded or included in analytics.
What should I check before using the result?
Ordering is case-sensitive and not locale-aware or numeric. Empty lines are included and duplicates remain.
Updated September 19, 2026