How sort words works
This tool splits your text into individual words (on any whitespace) and reorders them. You can sort alphabetically or by word length, ascending or descending, and choose whether the sort is case-sensitive.
By default the alphabetical sort is case-insensitive, so "Banana" and "apple" compare as "banana" and "apple". Turning on case-sensitive mode uses a locale-aware comparison where casing matters. When sorting by length, words of equal length fall back to an alphabetical tiebreak so the order is always deterministic.
Everything runs locally in your browser. The sorted words are rejoined with single spaces, and the result panel shows the count of words sorted.