https://issues.dlang.org/show_bug.cgi?id=8343

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from RazvanN <[email protected]> ---
>From docs :  "If sorted is true, the target is sorted. Otherwise, the target
respects the heap property" [1].

[1] https://dlang.org/phobos/std_algorithm_sorting.html#topNCopy

> But if the programmer gives "true" as the last argument, can't topNCopy just 
> sort the little result calling sort() on it before returning?

That is exactly what it does.

Closing as invalid.

--

Reply via email to