SN,
You will have to write your own. What you will have to do is chop off
the portion that is numeric on the two items being compared. When you do
that, take the text part, and do a comparison. If they are equal, then
convert the number portions and return the result when comparing the
numbers.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"sho_nuff" <sh*********@yahoo.com> wrote in message
news:49**************************@posting.google.c om...
Hello all,
I have a sorted list that contains items:
foo1
foo2
foo3
foo10
foo11
foo12
I want them to be displayed as above, but when i retrieve from my
sorted list they come back as:
foo1
foo10
foo11
foo12
foo2
foo3
Is there a Comparer in C# that will do the kind of sort that i want,
or do i have to write my own?
Thanks
SN