Skip to content

Commit

Permalink
Update RouterUri.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Dec 12, 2024
1 parent 950548e commit 395f667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webfiori/framework/router/RouterUri.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function getLanguages() : array {
public function getMiddleware() : array {
if (count($this->assignedMiddlewareList) != count($this->sortedMiddleeareList)) {
$compareFunc = function ($a, $b) {
return $b->getPriority() - $a->getPriority();
return $a->compare($b);
};
$this->sortedMiddleeareList = $this->assignedMiddlewareList;

Expand Down

0 comments on commit 395f667

Please sign in to comment.