Walter Bright:

This means that all algorithms on strings will be crippled
as far as performance goes.

If you want to sort an array of chars you need to use a dchar[], or code like this:

char[] word = "just a test".dup;
auto sword = cast(char[])word.representation.sort().release;

See:
http://d.puremagic.com/issues/show_bug.cgi?id=10162

Bye,
bearophile

Reply via email to