SyntaxFix
Write A Post
Hire A Developer
Questions
You can use LINQ:
String.Concat(str.OrderBy(c => c))
If you want to remove duplicates, add .Distinct().
.Distinct()