sortKeyLength

fun sortKeyLength(priorTerm: BytesRef, currentTerm: BytesRef): Int

Returns the length of currentTerm needed for use as a sort key. so that still returns the same result. This method assumes currentTerm comes after priorTerm.