forEachOrdered

Consume all terms in a sorted order.

Note: This is a destructive operation as it calls BytesRefHash.sort.

See also