Skip to content

Commit

Permalink
Resolve ordering of priority
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Dec 9, 2023
1 parent 41b5cd2 commit 556aa0f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sanic_routing/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 556aa0f

Please sign in to comment.