diff --git a/src/Pecee/SimpleRouter/RouterBase.php b/src/Pecee/SimpleRouter/RouterBase.php index f90bb2c..a86c9f2 100644 --- a/src/Pecee/SimpleRouter/RouterBase.php +++ b/src/Pecee/SimpleRouter/RouterBase.php @@ -102,6 +102,9 @@ class RouterBase { // Make sure the urls is in the right order when comparing usort($this->controllerUrlMap, function($a, $b) { + if(stripos($b->getUrl(), '{') !== false) { + return $a->getUrl(); + } return strcmp($b->getUrl(), $a->getUrl()); });