Creates a sort 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
)
Visual Basic
Public Sub New ( _
	field As String, _
	comparator As FieldComparatorSource _
)
Visual C++
public:
SortField(
	String^ field, 
	FieldComparatorSource^ comparator
)

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.

See Also