Keyword in Context algorithm in various languages, utilizing bubble sort or whatever other sorting library is available, if there is one. Otherwise, sorting is implemented manually.
Each program reads a text file and then alphabetizes the words in each line of that text file. For example, an input file containing two lines:
The Quick Brown Fox
Jumped Over the Lazy Dog
would result in the output:
Brown Fox Quick The
Dog Jumped Lazy Over the