Quote Originally Posted by Niya View Post
Actually, the comparison is numeric:-
Code:
RichTextBox1.Lines = RichTextBox1.Lines.
             Where(Function(x) Not String.IsNullOrEmpty(x)).
             OrderBy(Function(x) Decimal.Parse(x.Split(" "c)(0))).ToArray
The String is converted to a Decimal in the OrderBy clause.
it might be that the cultureinfo changes between dot and commas?
just guessing