compareTo

open fun compareTo(@NonNull another: Preference): Int(source)

Compares preference objects based on order (if set), otherwise alphabetically on the titles.

Return

0 if the same; less than 0 if this preference sorts ahead of another; greater than 0 if this preference sorts after another.

Parameters

another

The preference to compare to this one