private function compareActions($action1, $action2) { return $this->actionPos($action1) - $this->actionPos($action2); }