I'm attempting to order a list input from a file alphabetically (not lexicographically). So, if the list were:
C d A b
I need it to become: A b C d
Not the lexicographic ordering: A C b d
I'm using string variables to hold the input, so I'm looking for some way to modify the strings I'm comparing to all uppercase or lowercase, or if there's some easier way to force an alphabetic comparison, please impart that wisdom. Thanks!
I should also mention that we are limited to the following libraries for this assignment: iostream, iomanip, fstream, string, as well as C libraries, like cstring, cctype, etc.