SyntaxFix
Write A Post
Hire A Developer
Questions
Yes; copy the string to a char array, sort the char array, then copy that back into a string.
static string SortString(string input) { char[] characters = input.ToArray(); Array.Sort(characters); return new string(characters); }