Browse Source

Sort default params

so they are reported in a consistent order
Andy Dawson 7 years ago
parent
commit
804cf4f3db
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Shell/RoutesShell.php

+ 1 - 0
src/Shell/RoutesShell.php

@@ -38,6 +38,7 @@ class RoutesShell extends Shell
         ];
         foreach (Router::routes() as $route) {
             $name = isset($route->options['_name']) ? $route->options['_name'] : $route->getName();
+            ksort($route->defaults);
             $output[] = [$name, $route->template, json_encode($route->defaults)];
         }
         $this->helper('table')->output($output);