Write a comparer for it as Z < BA == false in normal coding. You would need
to compare lengths first, then compare two of the same length as normal I
imagine.
HTH
Ciaran O'Donnell
"Kb" wrote:
Hello There,
>
How do i compare string such that A < B<... <Y<Z<BA<BB... <CA... <ZZ
>
Thanks
KB
>
In addition to the other comments, you might be able to PadLeft the shorter
string with max length of the two strings...
Something like:
Public Class SpecialComparer
Implements IComparer(Of String)
Public Function Compare(ByVal x As String, ByVal y As String) As
Integer Implements IComparer(Of String).Compare
Dim totalWidth As Integer = Math.Max(x.Leng th, y.Length)
Return String.Compare( x.PadLeft(total Width),
y.PadLeft(total Width))
End Function
End Class
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Kb" <forlist2001@ya hoo.comwrote in message
news:ueHo7El3GH A.1588@TK2MSFTN GP02.phx.gbl...
Hello There,
>
How do i compare string such that A < B<... <Y<Z<BA<BB... <CA... <ZZ
>
Thanks
KB
Comment