Sorting Algorithms
1.
Enter a certain list of
words to be sorted.
2.
Is the list already in
alphabetical order?
3.
If YES, skip to step 10.
4.
If NO, continue to step 5.
5.
Compare item 1 to item
2, if item 1 comes before item 2, let it be and move onto the next item.
6.
If item 2 comes before
item 1 switch their order.
7.
Compare item 2 to item
3, if item 2 comes before item 3, let it be and move onto the next item.
8.
If item 3 comes before
item 2 switch their order.
9.
Continue to compare items
to the list until the list is complete.
10.
PRINT OUT THE SORTED LIST.
11.
END.