Apache Lucene.Net 2.1 Class Library API

SortField Constructor (String, SortComparatorSource, Boolean)

Creates a sort, possibly in reverse, with a custom comparison function.

public SortField(
   string field,
   SortComparatorSource comparator,
   bool reverse
);

Parameters

field
Name of field to sort by; cannot be
null
.
comparator
Returns a comparator for sorting hits.
reverse
True if natural order should be reversed.

See Also

SortField Class | Lucene.Net.Search Namespace | SortField Constructor Overload List