arr[idx++] = item;
}
}
// Sort the array
AbstractSorter sorter = fi.typeHandler.getSorter();
sorter.setSortDirection(constraint.sort);
sorter.setLexicalSort(constraint.lexicalSort);
Arrays.sort(arr, sorter);
// Rebuild the queue with the sorted array
AbstractQueue<Long> queue = new LinkedBlockingQueue<Long>();
for (int i = 0; i < arr.length; i++) {