items.Sort((x, y) => x.GetType().GetProperty(e.SortExpression).GetValue(x, null).ToString().CompareTo(
y.GetType().GetProperty(e.SortExpression).GetValue(y, null).ToString()));
I did this sorting expression, it is ok for string property, but when property is a double this code is sorting:
160, 225, 25, 250, 30 ...
It should be:
25, 30, 160, 225, 250 ...
Thanks in advance.
...
Go to the complete details ...