wrap

fun wrap(reader: CodecReader, sort: Sort): CodecReader

Return a sorted view of reader according to the order defined by sort . If the reader is already sorted, this method might return the reader as-is.


fun wrap(reader: CodecReader, docMap: Sorter.DocMap?, sort: Sort?): CodecReader

Expert: same as .wrap but operates directly on a Sorter.DocMap.