For a spelling exercise or word index, you may want to group words by their written endings. Reverse each word temporarily, sort the reversed forms, then reverse the letters again. The finished words stay readable in an order determined from their last letters backward.
Use this workflow with unique words made only of lowercase letters a–z, one word per line. The sorting stage also removes repeated entries, so keep a separate source if repetitions represent observations you need to preserve.
Reverse the letters in each word
Open Reverse Text and paste this sample into Your text, without an extra newline after the final word.
baker
actor
maker
doctor
reader
Under What should be reversed, select Each word’s letters, words stay in place. The Reversed text output becomes the temporary sort keys.
rekab
rotca
rekam
rotcod
redaer
The original endings are now at the front. For example, the two words ending in or have keys beginning with ro. Keep this intermediate output separate from the saved original.
Sort the temporary keys
Copy those five lines into the Duplicate Line Remover.
- Leave Ignore case and Trim whitespace before comparing unchecked.
- Check Ignore blank lines and Sort result A-Z.
- Leave Keep only the duplicates unchecked.
- Press Remove Duplicates.
Expect five lines in, five unique lines, zero duplicates removed and five lines out. The sorted keys are as follows.
redaer
rekab
rekam
rotca
rotcod
The tool uses language-sensitive text comparison for sorting. MDN documents that behavior in its localeCompare reference. The lowercase a–z sample keeps this exercise within a simple alphabet.
Restore the words in their new order
Paste the sorted keys back into Your text in Reverse Text. Keep Each word’s letters, words stay in place selected. The result is now:
reader
baker
maker
actor
doctor
A second letter reversal restores each word while keeping the sorted line positions. This follows the reversal operation described in the MDN array reversal reference.
Check the endings and the complete word set
Read the output from the right edge of each word. The er words come before the or words. Within the first group, the next letters distinguish reader from baker and maker.
Compare all five output words against the original and confirm that each appears once. Copy the readable final result into your exercise or index. Our alphabetical index guide explains the sorter’s matching and ordering options.