Text lines
Input lines
Sort lines naturally, lexically or by numeric values.
Open this toolNatural 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.
Input lines
Sort order
Natural text order, UTF8 byte lexical, Numeric values
Sort order
Ascending, Descending
The mode choice makes the reason for Item 2 and Item 10 ordering visible.
Natural order uses case sensitive PHP natural comparison. Lexical mode is byte ordering, not a language collation.
Natural order uses case sensitive PHP natural comparison. Lexical mode is byte ordering, not a language collation.
No. It uses byte ordering rather than locale specific collation.
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