gridMessages.OrderBy(x => Convert.ToInt32(x.age));
So age, is a string that could be something like "0", or "14", you get the picture. I wanted to sort the list by the age, so I convert it to an int in the OrderBy. The code compiles and runs without error but the list is not sorted.
What am I doing wrong?