compare strings

Ricky D

Well-Known Member
Licensed User
Longtime User
If I have 2 strings "City" and "Blank" how can I test if one is greater than the other

ie in this case City is greater than Blank alphabetically.

I am having to sort a list that contains types but in 1.8 I can't do that so I'm trying to do a simple bubble sort and I want to sort based on string fields.

Any ideas?

regards, Ricky
 

Ricky D

Well-Known Member
Licensed User
Longtime User
after much searching I found what I needed - str.CompareTo

where str is a string.

cheers, Ricky
 
Upvote 0
Top