T
temp34k45k
I need to evaluate two strings for their order.
The strings contain Letters (A thru Z upper case only) and Numbers
(0-9) and the decimal point (.).
I need an order like the list that follows: ( it's just an example
of the order )
0
1
2
3
A.0
A.1
A.2
B
C
Z
AA.1
AA.4
AA
AB
AZ
Currently I am testing two strings:
if(string1 < string 2)
It seemed to work ok until I encountered (AB < Z ) as TRUE, it
evaluated backwards having Z greater than AB. I found true that :
(AB > A)
but
(AB < B)
(AB < C)
are the single characters in the strings being evaluated as "A "
with a space after the letter? That's the only thing that's
logical. If so, how do I make it evaluate correctly.
Thanks in advance.
JC
The strings contain Letters (A thru Z upper case only) and Numbers
(0-9) and the decimal point (.).
I need an order like the list that follows: ( it's just an example
of the order )
0
1
2
3
A.0
A.1
A.2
B
C
Z
AA.1
AA.4
AA
AB
AZ
Currently I am testing two strings:
if(string1 < string 2)
It seemed to work ok until I encountered (AB < Z ) as TRUE, it
evaluated backwards having Z greater than AB. I found true that :
(AB > A)
but
(AB < B)
(AB < C)
are the single characters in the strings being evaluated as "A "
with a space after the letter? That's the only thing that's
logical. If so, how do I make it evaluate correctly.
Thanks in advance.
JC