StringComparer.compare

Compares two strings and returns the sort order.

class StringComparer
int
compare
(
const(char)[] strA
,
const(char)[] strB
)

Parameters

strA const(char)[]

A string to compare to strB.

strB const(char)[]

A string to compare to strA.

Return Value

Type: int

-1 is strA is less than strB; 0 if strA is equal to strB; 1 if strA is greater than strB.

Meta