diff --git a/std/algorithm/sorting.d b/std/algorithm/sorting.d index 95375bc72..ceeb2c275 100644 --- a/std/algorithm/sorting.d +++ b/std/algorithm/sorting.d @@ -1562,7 +1562,7 @@ private void sort5(alias lt, Range)(Range r) { assert(r.length >= 5); - import std.algorithm : swapAt; + import std.algorithm.mutation : swapAt; // 1. Sort first two pairs if (lt(r[1], r[0])) r.swapAt(0, 1); diff --git a/unittest.d b/unittest.d index 8b129df5b..cfd69a0f6 100644 --- a/unittest.d +++ b/unittest.d @@ -70,7 +70,8 @@ int main(string[] args) uint ranseed = std.random.unpredictableSeed; thisTid; int[] a; - import std.algorithm : sort, reverse; + import std.algorithm.sorting : sort; + import std.algorithm.mutation : reverse; reverse(a); // adi sort(a); // qsort Clock.currTime(); // datetime