Sort characters in string

Mengu mengukagan at gmail.com
Thu Dec 7 09:21:16 UTC 2017


On Wednesday, 6 December 2017 at 12:43:09 UTC, Fredrik Boulund 
wrote:
> On Wednesday, 6 December 2017 at 10:42:31 UTC, Dgame wrote:
>
>>
>> Or you simply do
>> ----
>> writeln("longword".array.sort);
>> ----
>
> This is so strange. I was dead sure I tried that but it failed 
> for some reason. But after trying it just now it also seems to 
> work just fine. Thanks! :)

if you're like me, you probably forgot an import :)


More information about the Digitalmars-d-learn mailing list