@@ -116,7 +116,7 @@ void completeSort(alias less = "a < b", SwapStrategy ss = SwapStrategy.unstable,
116116if (hasLength! (RandomAccessRange2) && hasSlicing! (RandomAccessRange2))
117117{
118118 import std.algorithm.mutation : bringToFront;
119- import std.range : assumeSorted, chain ;
119+ import std.range : chain, assumeSorted ;
120120 // Probably this algorithm can be optimized by using in-place
121121 // merge
122122 auto lhsOriginal = lhs.release();
@@ -619,7 +619,7 @@ if (isRandomAccessRange!Range && hasLength!Range && hasSlicing!Range)
619619{
620620 assert (pivot < r.length || r.length == 0 && pivot == 0 );
621621 if (r.length <= 1 ) return 0 ;
622- import std.algorithm.mutation : move, swapAt ;
622+ import std.algorithm.mutation : swapAt, move ;
623623 alias lt = binaryFun! less;
624624
625625 // Pivot at the front
@@ -1939,7 +1939,7 @@ if (((ss == SwapStrategy.unstable && (hasSwappableElements!Range ||
19391939{
19401940 import std.algorithm.internal : rndstuff;
19411941 import std.algorithm.mutation : swapRanges;
1942- import std.random : Random , uniform, unpredictableSeed ;
1942+ import std.random : Random , unpredictableSeed, uniform ;
19431943 import std.uni : toUpper;
19441944
19451945 // sort using delegate
@@ -2038,7 +2038,7 @@ if (((ss == SwapStrategy.unstable && (hasSwappableElements!Range ||
20382038
20392039private void quickSortImpl (alias less, Range )(Range r, size_t depth)
20402040{
2041- import std.algorithm.comparison : max, min ;
2041+ import std.algorithm.comparison : min, max ;
20422042 import std.algorithm.mutation : swap, swapAt;
20432043
20442044 alias Elem = ElementType! (Range );
@@ -2736,7 +2736,7 @@ private template TimSortImpl(alias pred, R)
27362736
27372737@safe unittest
27382738{
2739- import std.random : Random , randomShuffle, uniform ;
2739+ import std.random : Random , uniform, randomShuffle ;
27402740
27412741 // Element type with two fields
27422742 static struct E
@@ -2893,7 +2893,7 @@ schwartzSort(alias transform, alias less = "a < b",
28932893if (isRandomAccessRange! R && hasLength! R)
28942894{
28952895 import std.conv : emplace;
2896- import std.range : SortedRange, zip ;
2896+ import std.range : zip, SortedRange ;
28972897 import std.string : representation;
28982898
28992899 alias T = typeof (unaryFun! transform(r.front));
@@ -3437,7 +3437,7 @@ private T[] randomArray(Flag!"exactSize" flag = No.exactSize, T = int)(
34373437 T minValue = 0 , T maxValue = 255 )
34383438{
34393439 import std.algorithm.iteration : map;
3440- import std.random : Random , uniform, unpredictableSeed ;
3440+ import std.random : unpredictableSeed, Random , uniform ;
34413441 auto size = flag == Yes.exactSize ? maxSize : uniform(1 , maxSize);
34423442 return iota (0 , size).map! (_ => uniform(minValue, maxValue)).array;
34433443}
@@ -3698,7 +3698,7 @@ if (isInputRange!(SRange) && isRandomAccessRange!(TRange)
36983698
36993699@system unittest
37003700{
3701- import std.random : Random , randomShuffle , uniform, unpredictableSeed ;
3701+ import std.random : Random , unpredictableSeed , uniform, randomShuffle ;
37023702 import std.typecons : Yes;
37033703
37043704 auto r = Random (unpredictableSeed);
0 commit comments