This one sorts the words within each line while leaving the order of the lines themselves untouched. It is a narrow operation with one very specific use: making phrases that contain the same words look identical.
What it produces
red running shoes and running shoes red both become red running shoes. The lines are now byte-identical, which means any tool that compares strings will finally agree they are the same thing.
The term for this
Two phrases built from the same words in a different order are permutations of one another. Sorting the words inside each line is how you collapse every permutation onto a single canonical form.
What it is not for
This scrambles readability. It is a comparison aid, not an output format β you sort words to find the duplicates, then work with the original phrasing.
Try it: Alphabetize Words Within Each Line on SeoWolf's Notepad.