protected function listenerSort(Listener $a, Listener $b) { if ($a->priority >= $b->priority) { return 1; } return -1; }