compareTo method

int compareTo(
  1. EventRegistration other
)

Compares the priority of this registration with another.

Used by EventSystem to sort event listeners by priority.

Implementation

int compareTo(EventRegistration other) {
  return other.priority.index.compareTo(priority.index);
}