You're looking at needing two things:
1) you need a string copy function and a string compare function
2) you will need a temporary variable to hold values in.
What you need to do is use the string compare function to compare the strings, and a copy function with the temporary string to perform a swap. Once you have those, you should be able to modify the bubble sort to accomplish what you want.
|