jason.lu 6 년 전
부모
커밋
561672014f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      js/newCommon.js

+ 1 - 1
js/newCommon.js

@@ -98,7 +98,7 @@ const DataObjectList = function (name) {
 
     while (i !== j) {
       while ((comp(inputVar[j], pivot) > 0) && i < j) { j--; }
-      while ((comp(inputVar[j], pivot) <= 0) && i < j) { i++; }
+      while ((comp(inputVar[i], pivot) <= 0) && i < j) { i++; }
       if (i < j) { // 如果i==j跳出外层while
         const t = inputVar[i];
         inputVar[i] = inputVar[j];