From 556aa0fc59e247fd5c0b8a70812989ba377cd7f9 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Sat, 9 Dec 2023 22:00:50 +0200 Subject: [PATCH] Resolve ordering of priority --- sanic_routing/group.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sanic_routing/group.py b/sanic_routing/group.py index bbcdfbf..60b3872 100644 --- a/sanic_routing/group.py +++ b/sanic_routing/group.py @@ -109,9 +109,7 @@ def prioritize_routes(self) -> None: Sorts the routes in the group by priority """ self._routes = tuple( - sorted( - self._routes, key=lambda route: route.priority, reverse=True - ) + sorted(self._routes, key=lambda route: route.priority) ) def reset(self):