diff --git a/Chapter12/Chap12-15.js b/Chapter12/Chap12-15.js index c29183c..459a843 100644 --- a/Chapter12/Chap12-15.js +++ b/Chapter12/Chap12-15.js @@ -11,7 +11,7 @@ function qSort(arr) if (arr[i] < pivot) { left.push(arr[i]); - } else { + } else if(arr[i] > pivot) { right.push(arr[i]); }