sort(charArray) doesn't work

Namespace rswhite4 at googlemail.com
Wed Nov 13 03:00:42 PST 2013


On Wednesday, 13 November 2013 at 10:58:02 UTC, bearophile wrote:
> 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

How intuitive. :D


More information about the Digitalmars-d-learn mailing list