function c(t){return[...t].sort(s)}function e(t){return(t.match(/:[^/]+/g)||[]).length}function o(t){return t.includes(":{.+}")||t.includes("{.+}")}function i(t){return o(t)?3:t.includes(":")?2:1}function s(t,n){const r=i(t.slug),u=i(n.slug);return r!==u?r-u:r===2?e(t.slug)-e(n.slug):t.slug.length-n.slug.length}export{c as sortApiFunctionRoutes};
