← All nodes
Unstructured Text

Sort Lines A–Z

Put every line of your list into alphabetical order from A to Z.

When to use it

Typical uses: Alphabetising names, glossaries and bibliographies; Sorting tags, keywords or product lists; Making lists easier to scan or compare.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
Text columnselect—Text
Remove empty linescheckbox—true
Generate New Columncheckbox—false
New Column Nametext—Default: <column> Result
Insert Afterselect—After the column
When a value cannot be convertedselect—stop

Example

Sort Lines A–Z: an example

    Text arriving
    Text
    banana Item 10 apple Item 2 Éclair Cherry
    The text after this node
    Text
    apple banana Cherry Éclair Item 2 Item 10

    Worth knowing

    • What is natural sorting? Natural sorting compares numbers by their value, so 2 comes before 10. Basic sorting compares digit by digit and would put 10 first.
    • Is the sort case-sensitive? No. “apple” and “Apple” are treated as equal.
    • Can I remove duplicates while sorting? Run your list through Remove Duplicate Lines first, then sort it.
    • Works on any text column, not only Text Input's: pick it under Text column. Tick Generate New Column to keep the original next to the result.

    Others in Unstructured Text