NaturalSortComparer..::..Compare Method

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public int Compare(
	Nullable<string> x,
	Nullable<string> y
)
Public Function Compare ( _
	x As Nullable(Of String), _
	y As Nullable(Of String) _
) As Integer

Parameters

x
Type: Nullable<(Of <(<'String>)>)>
The first object to compare.
y
Type: Nullable<(Of <(<'String>)>)>
The second object to compare.

Return Value

A signed integer that indicates the relative values of x and y, as shown in the following table. Value Meaning Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y.