Reorders the random-access range r such that the range r[0 .. mid]
is the same as if the entire r were sorted, and leaves
the range r[mid .. r.length] in no particular order.
Performs O(r.length * log(mid)) evaluations of pred. The
implementation simply calls topN!(less, ss)(r, n) and then sort!(less, ss)(r[0 .. n]).
Reorders the random-access range r such that the range r[0 .. mid] is the same as if the entire r were sorted, and leaves the range r[mid .. r.length] in no particular order.
Performs O(r.length * log(mid)) evaluations of pred. The implementation simply calls topN!(less, ss)(r, n) and then sort!(less, ss)(r[0 .. n]).