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.