Trouble using 'sort'

drug via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 26 00:12:24 PDT 2016


26.07.2016 09:11, Jonathan M Davis via Digitalmars-d-learn пишет:
>
> It's frequently the case that if you want to sort a range, you have to call
> array() on it to convert it to an array, and then you can sort the array.
>
> - Jonathan M Davis
>
Another option is `makeIndex` (std.algorithm.sorting) and then sorting 
of that index.


More information about the Digitalmars-d-learn mailing list