|
if ((curLevel == 0) && !isLevelZeroSorted) { |
|
Arrays.sort(inBuf, adjBeg, adjBeg + adjPop); |
|
} |
The Arrays.sort API in the above code
sorts the specified range of the specified array of objects into ascending order, according to the natural ordering of its elements. ... All elements in this range must implement the Comparable interface`.
It appears that Arrays.sort(inBuf, adjBeg, adjBeg + adjPop, comp) should be called instead.
datasketches-java/src/main/java/org/apache/datasketches/kll/KllItemsHelper.java
Lines 436 to 438 in 8ae234b
The
Arrays.sortAPI in the above codeIt appears that
Arrays.sort(inBuf, adjBeg, adjBeg + adjPop, comp)should be called instead.