original_string: protected function sortRoutes($sort, array $routes)
      {
          return Arr::sort($routes, function ($route) use ($sort) {
              return $route[$sort];
          });
      }
code: protected function sortRoutes($sort, array $routes)
      {
          return Arr::sort($routes, function ($route) use ($sort) {
              return $route[$sort];
          });
      }
code_tokens: protected function sortRoutes ( $ sort , array $ routes ) { return Arr :: sort ( $ routes , function ( $ route ) use ( $ sort ) { return $ route [ $ sort ] ; } ) ; }
docstring: Sort the routes by a given element.
  
  @param  string  $sort
  @param  array  $routes
  @return array
docstring_tokens: Sort the routes by a given element .