Skip to content

Commit

Permalink
fix unsorted keys before lazy combine
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicTheorist committed Oct 3, 2021
1 parent 40a4909 commit ac963cd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1705,6 +1705,8 @@ private LocalMerge combineBlocks(T[] array, int start, int length, int bufferLen
// resetBuffer(array, start + keyBuffer, length - keyBuffer, keyBuffer);
direction = LocalMerge.FORWARDS;
}

insertSort(array, start, keyLen, this.cmp);

while((length - keyLen) > subarrayLen) {
this.lazyCombine(array, start, start + keyLen, length - keyLen,
Expand Down

0 comments on commit ac963cd

Please sign in to comment.