This commit is contained in:
2020-06-08 12:06:05 -05:00
parent d9b51e1c53
commit d3398c9b65

View File

@@ -19,7 +19,7 @@ public class QuickSorterThreeWay extends QuickSorter{
int greaterThan = highIndex;
int i = greaterThan-1;
while(i>lessThan){
int comp = compare(pivot, numbers[i]);
int comp = compare(numbers[i], pivot);
if(comp>0){
swap(i, greaterThan);
i--;