setCompareMode

Sets the comparison mode and function.

Parameters

mode

Compare mode to use.

func

Comparison function.