X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FQuickSort.java;fp=src%2Fjalview%2Futil%2FQuickSort.java;h=62fd56eb7629d939895314abc343796be9783466;hb=853624fb32058cccc544ae7d13af6ad4b0800b6c;hp=c1ef153c48f4af2d7b567b7b105955bbaa784b4b;hpb=02d6aa2077a261d41db77a0158f2b4b779a36398;p=jalview.git diff --git a/src/jalview/util/QuickSort.java b/src/jalview/util/QuickSort.java index c1ef153..62fd56e 100755 --- a/src/jalview/util/QuickSort.java +++ b/src/jalview/util/QuickSort.java @@ -670,7 +670,7 @@ public class QuickSort final int length = arr.length; Integer[] indices = makeIndexArray(length); Arrays.sort(indices, new IntComparator(arr, ascending)); - + /* * Copy the array values as per the sorted indices */ @@ -681,7 +681,7 @@ public class QuickSort sortedInts[i] = arr[indices[i]]; sortedObjects[i] = s[indices[i]]; } - + /* * And copy the sorted values back into the arrays */ @@ -707,7 +707,7 @@ public class QuickSort final int length = arr.length; Integer[] indices = makeIndexArray(length); Arrays.sort(indices, new ExternalComparator(arr, ascending)); - + /* * Copy the array values as per the sorted indices */ @@ -718,7 +718,7 @@ public class QuickSort sortedStrings[i] = arr[indices[i]]; sortedObjects[i] = s[indices[i]]; } - + /* * And copy the sorted values back into the arrays */ @@ -743,7 +743,7 @@ public class QuickSort final int length = arr.length; Integer[] indices = makeIndexArray(length); Arrays.sort(indices, new DoubleComparator(arr, ascending)); - + /* * Copy the array values as per the sorted indices */ @@ -754,7 +754,7 @@ public class QuickSort sortedDoubles[i] = arr[indices[i]]; sortedObjects[i] = s[indices[i]]; } - + /* * And copy the sorted values back into the arrays */