WhatsOnTool directory

Text Line Sorter

Sort lines naturally, lexically or by numeric values.

Open this tool

Natural order, byte order and numeric order can produce different sequences from the same list.

Choose the mode that matches the entries, then inspect the sorted output before using it.

Inputs and controls

Text lines

Input lines

Comparison

Sort order

Natural text order, UTF8 byte lexical, Numeric values

Direction

Sort order

Ascending, Descending

How to use

Why use this tool

The mode choice makes the reason for Item 2 and Item 10 ordering visible.

Before relying on the result

Natural order uses case sensitive PHP natural comparison. Lexical mode is byte ordering, not a language collation.

Tool limitations

Natural order uses case sensitive PHP natural comparison. Lexical mode is byte ordering, not a language collation.

Questions

Is lexical mode a language dictionary order?

No. It uses byte ordering rather than locale specific collation.

What should I check before using Text Line Sorter?

Check Text lines, Comparison and Direction. Use the exact units shown beside the controls and replace any example values with your own inputs.

Source page last modified: 2026-10-04T16:58:29+00:00. This profile describes the tool; use its page to run it.

Markdown profile