protected function sortRoutes($sort, array $routes)
    {
        return Arr::sort($routes, function ($route) use ($sort) {
            return $route[$sort];
        });
    }
protected function sortRoutes($sort, array $routes)
    {
        return Arr::sort($routes, function ($route) use ($sort) {
            return $route[$sort];
        });
    }
protected function sortRoutes ( $ sort , array $ routes ) { return Arr :: sort ( $ routes , function ( $ route ) use ( $ sort ) { return $ route [ $ sort ] ; } ) ; }
Sort the routes by a given element.

@param  string  $sort
@param  array  $routes
@return array
Sort the routes by a given element .