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

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public SortField(
	string field,
	FieldComparatorSource comparator,
	bool reverse
)
Visual Basic
Public Sub New ( _
	field As String, _
	comparator As FieldComparatorSource, _
	reverse As Boolean _
)
Visual C++
public:
SortField(
	String^ field, 
	FieldComparatorSource^ comparator, 
	bool reverse
)

Parameters

field
Type: System..::..String
Name of field to sort by; cannot be
CopyC#
null
.
comparator
Type: Lucene.Net.Search..::..FieldComparatorSource
Returns a comparator for sorting hits.
reverse
Type: System..::..Boolean
True if natural order should be reversed.

See Also