Sort Words

Reorder the words in the text.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

Words are split on whitespace and joined back with a single space.

Punctuation stays attached to the word it touches.

How to use it

  1. Open this page and provide the input it asks for.
  2. Set the options that are visible, then use Sort words.
  3. Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.

Limitations

Words ordered, punctuation still stuck on

The unit is a word token, not a line

The page splits the paste into words, sorts those words, and joins them back. Punctuation that was touching a word stays touching it, so “end.” sorts under the token “end.” rather than under “end”. Two tokens that differ only by a comma are not the same key. The sort order follows the locale’s collation, the same idea as the line sorter, but the items are words. Line structure is not preserved. A poem becomes a word list.

Duplicates and case

Repeated words stay repeated unless you remove them yourself. The page does not unique the list. Case is part of the collation, so “Apple” and “apple” may sit together or apart according to the locale, but they remain two tokens if both were present. There is no stem. “Cat” and “cats” do not merge.

When a line sort is the real request

If each row is already one item, sort lines. Sorting words inside a paragraph rewrites the paragraph into a different text. You cannot recover the sentences from the sorted words. Numbers mixed with words sort as text tokens, so “10” and “2” follow character order, not magnitude. The number sorter is for values. This page is for tokens in a paste.

The sentence is gone on purpose

Sorting words throws away order, which is the carrier of grammar. The result is a bag of tokens laid out in collation order. You can count them or scan them for a stray word. You cannot quote them as the original sentence. If a word arrived with a comma attached, it sorts as that longer token and will not sit beside the bare word.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.