sort
Returns a SortState representing the order of elements in this array. This is a non-destructive operation.
Return
A SortState that could be used in BytesRefArray.iterator
Parameters
comp
The comparator to compare BytesRefs. A radix sort optimization is available if the comparator implements BytesRefComparator
stable
If the sort needs to be stable