let arr1 = [4, 3, 1, 5, 2, 6, 5, 3, 8, 9, 6, 7]; let len = arr1.length - 1; functionquickSort(arr, left, right) { let l = left; let r = right; let base = arr[left]; if (left > right) { return; }
while (l != r) { while (arr[r] >= base && l < r) { r--; }