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#
[ObsoleteAttribute("use SortField (String field, FieldComparatorSource comparator)")]
public SortField(
	string field,
	SortComparatorSource comparator
)
Visual Basic
<ObsoleteAttribute("use SortField (String field, FieldComparatorSource comparator)")> _
Public Sub New ( _
	field As String, _
	comparator As SortComparatorSource _
)
Visual C++
[ObsoleteAttribute(L"use SortField (String field, FieldComparatorSource comparator)")]
public:
SortField(
	String^ field, 
	SortComparatorSource^ comparator
)

Parameters

field
Type: System..::..String
Name of field to sort by; cannot be
CopyC#
null
.
comparator
Type: Lucene.Net.Search..::..SortComparatorSource
Returns a comparator for sorting hits.

See Also