compare

abstract fun compare(left: Element, right: Element): ComparisonResult(source)

Compares left and right elements.

Return

A ComparisonResult indicating the relative order of the two elements.

Parameters

left

The left element in the comparison.

right

The right element in the comparison.