|
-
Sep 22nd, 2005, 01:39 PM
#1
Thread Starter
Junior Member
Sorting alpha lists wierdness
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|