Sort by Length
Sort lines from shortest to longest by character count, keeping equal-length lines in their original order. Great for arranging lists visually or finding the longest and shortest entries.
Try it now
Worked example
fig
kiwi
apple
banana
Frequently asked
How is length measured?
By number of characters in the line.
Are ties preserved?
Yes, lines of equal length keep their original order.