How to sort String alphabetically in F#?

Viewed 991

I have string "DBCA" and want sort it in F#

let sortedString str =
    ...

printfn "%A" <| sortedString "DBCA" // "ABCD"

Code sample on C#

String
    .Concat(
        _str
            .OrderBy(ch => ch)
    );
2 Answers
Related