I don't want anyone to come right out and write it for me. I need the experience on learning to do it for myself. With that said I need some help getting started.
Basically I have an string array with 10 elements in it. Each element is a word that has different letters in upper or lower case. I can sort the list using the selection sort algorithm, but it takes into consieration the case of the letters and puts the words with upper case over the words that start with lower case and so on. I know why it does this -- because in the ASCII chart upper case comes before lower case. However, I need to change the sort to ingnore the case and sort it again from there, but at the same time not changing the original word.
For example...Say my list has {Free, aPPle, Bird, caRd, AirPlane}. The first sort would look like:
AirPlane
Bird
Free
aPPle
caRd
Now I want it to do:
AirPlane
aPPle
Bird
caRd
Free
Make sense? I remember reading about some functions -- isupper/islower or toupper/tolower. Do those need to come into play? If someone could point me in the right direction as far as getting an idea of what to do, then I can probably write the code. Thanks for your help. I'll check back later.
Basically I have an string array with 10 elements in it. Each element is a word that has different letters in upper or lower case. I can sort the list using the selection sort algorithm, but it takes into consieration the case of the letters and puts the words with upper case over the words that start with lower case and so on. I know why it does this -- because in the ASCII chart upper case comes before lower case. However, I need to change the sort to ingnore the case and sort it again from there, but at the same time not changing the original word.
For example...Say my list has {Free, aPPle, Bird, caRd, AirPlane}. The first sort would look like:
AirPlane
Bird
Free
aPPle
caRd
Now I want it to do:
AirPlane
aPPle
Bird
caRd
Free
Make sense? I remember reading about some functions -- isupper/islower or toupper/tolower. Do those need to come into play? If someone could point me in the right direction as far as getting an idea of what to do, then I can probably write the code. Thanks for your help. I'll check back later.