Sort bug / strangeness

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Oct 1 18:47:02 UTC 2021


On Fri, Oct 01, 2021 at 06:30:48PM +0000, Danny Arends via Digitalmars-d-learn wrote:
[...]
> Is there a sort() algorithm that avoids swapping the items themselves
> and e.g. just returns the indexes so I can reorder the original array
> myself ?

https://dlang.org/phobos/std_algorithm_sorting.html#.makeIndex


T

-- 
Caffeine underflow. Brain dumped.


More information about the Digitalmars-d-learn mailing list