Term enumerations are always ordered by {@link #getComparator}. Each term in the enumeration is greater than all that precede it.
120121122123124125126127
final TermsEnum tenum = terms.iterator(null); if ((lowerTerm == null || (includeLower && lowerTerm.length == 0)) && upperTerm == null) { return tenum; } return new TermRangeTermsEnum(tenum, lowerTerm, upperTerm, includeLower, includeUpper); }