I have a string ex. "XbZYzABxB". How can I sort that string so the letters are in alphabetical order and the upper-case letters are before lower-case letter?
The example would come out like this: "ABBbXxYZz".
put em in an array and sort is one option...
That doesnt work like i need because it puts all the capitals go first and then the rest. I want the letetrs to be in alphabetical order but if there is 'a' and 'A', the uppercase A should go first.
Is capitalization important to your program? if not, captialize the entire string then do the array....other than that, I'm really not sure.