I need to sort a string alphabetically. The most common solution I have found is to use linq:
var sortedString = unsortedString.OrderBy(c => c);
The problem I have with this solution is that the result is not a string. The result is an IOrderedEnumerable< char > which needs to be converted. This does not work:
var sortedString = unsortedString.OrderBy(c => c).ToString();