feat(utils): export sort routes (#6277)

This commit is contained in:
Pim 2019-09-01 18:24:21 +02:00 committed by Pooya Parsa
parent 93a0924754
commit 0daaf87c83

View File

@ -74,7 +74,7 @@ function cleanChildrenRoutes (routes, isChild = false, routeNameSplitter = '-')
const DYNAMIC_ROUTE_REGEX = /^\/([:*])/
const sortRoutes = function sortRoutes (routes) {
export const sortRoutes = function sortRoutes (routes) {
routes.sort((a, b) => {
if (!a.path.length) {
return -1