sort(charArray) doesn't work

bearophile bearophileHUGS at lycos.com
Wed Nov 13 02:58:01 PST 2013


Uplink_Coder:

> sort doesn't work on an primitive Array ?
> Is that normal ....
> please look @http://www.dpaste.dzfl.pl/961286e1
> because I don't know what i'm doing worng
>
> Thanks in Advance :D

One way to solve your char[]:

return cast(typeof(vars))vars.representation.sort().release;


representation is in std.string.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list