Hi everyone,
I'm writing a utility to clean up emails and I need to sort a list of up to about 40000 items.

At first I tried putting these items in a sorted listbox this worked well, but then I noticed the list was like this:

AB
AB
AB
ab
ab
ab
AB
ABC
etc..

Where uppercase/lowercase of the same characters were mixed together. I did a bubble sort which corrects this but is super slow. I did a shell sort and quick sort and it is very fast but sorts similarly to the listbox sort. (upper and lower mixed)

I trimmed the strings before putting them in an array, so they are all of the same length.

What am I doing wrong?

thanks for your help!
m.