Anyone have any tips of ideas on how to sort a list of strings into alphabetical order.
At the moment, I'm doing it by comparing the ascii values of each bit of the string, and then quicksorting them into value order.
It's sort of working, but it struggles when you put stuff like "aaaa", "aaa" in there and also stuff liked "plop 1", "plop a", "plop b".
Surely there's a better way? :)
At the moment, I'm doing it by comparing the ascii values of each bit of the string, and then quicksorting them into value order.
It's sort of working, but it struggles when you put stuff like "aaaa", "aaa" in there and also stuff liked "plop 1", "plop a", "plop b".
Surely there's a better way? :)