I have strings like this:
var a = "ABCFE";
Is there a simple way that I can sort this string into:
ABCEF
Thanks
You can use LINQ:
String.Concat(str.OrderBy(c => c))
If you want to remove duplicates, add .Distinct().
.Distinct()
1.4m articles
1.4m replys
5 comments
57.0k users