function sortRoutesimport { sortRoutes } from "https://deno.land/x/live@0.10.1/pages.ts"; sortRoutes<T extends { pattern: string; }>(routes: T[])Sort pages by their relative routing priority, based on the parts in the route matcher Logic extracted from: https://github.com/denoland/fresh/blob/046fcde959041ac9cd5f2b39671c819c4af5cc24/src/server/context.ts#L683 Type ParametersT extends { pattern: string; }Parametersroutes: T[]