# Text Line Sorter Sort lines naturally, lexically or by numeric values. [Open this tool](https://whatson.pk/developer-text-sort-calculator/) Category: Developer & Data 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 * Comparison: Natural text order; UTF8 byte lexical; Numeric values * Direction: Ascending; Descending ## How to use * Paste or enter text lines. * Choose comparison and direction. * Select Process input. Read the returned values alongside the assumptions below before copying, exporting or acting on the result. ## 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 (UTC): 2026-10-04T16:58:29+00:00 This profile describes the tool. It does not execute it or supply a professional certification.