sanic-org / sanic-routing

Internal handler routing for Sanic beginning with v21.3.

Home Page:https://sanicframework.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic route sorting

ahopkins opened this issue · comments

Currently it is this:

        return (
            child.dynamic,
            len(child._children),
            key,
            bool(child.group and child.group.regex),
            type_ * -1,
        )

It should be:

        return (
            child.dynamic,
            len(child._children),
            bool(child.group and child.group.regex),
            type_ * -1,
            key,
        )

... so that the variable name is the last tie breaker