Steven Schveighoffer:
The only thing I can think of that won't work is sorting an array of char or wchar, which std.algorithm.sort will not do (right?).
The solution I have suggested is: myString.representation.sort().release.unrepresentation (Where unrepresentation is not yet present in Phobos). Bye, bearophile